diff --git a/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp b/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp index 582543282567585cb8f4b0fd50b907587e6edf05..efea00d1c87d36bd28f92c78389dcf0085dd5c2e 100644 --- a/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp +++ b/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp @@ -766,12 +766,11 @@ int IntegerConfigControl::GetIntValue() { /* We avoid using GetValue because of a recursion bug with wxSpinCtrl with * wxGTK. */ - return i_value; //spin->GetValue(); + return spin->GetValue(); } void IntegerConfigControl::OnUpdate( wxCommandEvent &event ) { - i_value = event.GetInt(); ConfigControl::OnUpdate( event ); } void IntegerConfigControl::OnUpdateScroll( wxScrollEvent &event )