From c69dd6e4b0586b5114a613bf88757428b62b4f3e Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 14 Sep 2007 04:22:04 +0000 Subject: [PATCH] build fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/spinctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gtk/spinctrl.cpp b/src/gtk/spinctrl.cpp index c80f8ddd51..a586086513 100644 --- a/src/gtk/spinctrl.cpp +++ b/src/gtk/spinctrl.cpp @@ -175,7 +175,8 @@ int wxSpinCtrl::GetValue() const wxSpinCtrl_GtkDisableEvents( this ); gtk_spin_button_update( GTK_SPIN_BUTTON(m_widget) ); - m_pos = int(gtk_spin_button_get_value(GTK_SPIN_BUTTON(m_widget))); + wx_const_cast(wxSpinCtrl*, this)->m_pos = + int(gtk_spin_button_get_value(GTK_SPIN_BUTTON(m_widget))); wxSpinCtrl_GtkEnableEvents( this ); return m_pos;