X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4dcaf11a7b5189be78e52e1412febd7689a959f8..3d9431bf7e69b8f4752435b9750e13064a4a01cb:/src/gtk/spinbutt.cpp?ds=sidebyside diff --git a/src/gtk/spinbutt.cpp b/src/gtk/spinbutt.cpp index 31a244d6c3..e4ef0744ed 100644 --- a/src/gtk/spinbutt.cpp +++ b/src/gtk/spinbutt.cpp @@ -67,7 +67,6 @@ static void gtk_spinbutt_callback( GtkWidget *WXUNUSED(widget), wxSpinButton *wi wxSpinEvent event( command, win->GetId()); event.SetPosition( value ); - event.SetOrientation( wxVERTICAL ); event.SetEventObject( win ); win->GetEventHandler()->ProcessEvent( event ); @@ -98,7 +97,7 @@ bool wxSpinButton::Create(wxWindow *parent, if (new_size.y == -1) new_size.y = 30; - if (!PreCreation( parent, pos, size ) || + if (!PreCreation( parent, pos, new_size ) || !CreateBase( parent, id, pos, new_size, style, wxDefaultValidator, name )) { wxFAIL_MSG( _T("wxXX creation failed") );