X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79fb264130d6b8091f2d53dbfdcf64e281444ac7..b6a20a20d010d643e52914f51aa0700df0da925f:/src/motif/spinbutt.cpp?ds=sidebyside diff --git a/src/motif/spinbutt.cpp b/src/motif/spinbutt.cpp index 2ad0e3b774..ca3a6e2af1 100644 --- a/src/motif/spinbutt.cpp +++ b/src/motif/spinbutt.cpp @@ -9,10 +9,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "spinbutt.h" #endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + #include "wx/spinbutt.h" #include "wx/spinctrl.h" #include "wx/timer.h" @@ -183,7 +186,7 @@ bool wxArrowButton::Create( wxSpinButton* parent, wxWindowID id, ArrowDirection d, const wxPoint& pos, const wxSize& size ) { - int arrow_dir; + int arrow_dir = XmARROW_UP; switch( d ) { @@ -274,8 +277,6 @@ bool wxSpinButton::Create( wxWindow *parent, wxWindowID id, SetName(name); - InitBase(); - m_windowId = ( id == -1 ) ? NewControlId() : id; bool isVert = IsVertical();