X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79fb264130d6b8091f2d53dbfdcf64e281444ac7..eb65cb341bb04925a8698497e0d2d4a35986f6d4:/src/motif/spinbutt.cpp diff --git a/src/motif/spinbutt.cpp b/src/motif/spinbutt.cpp index 2ad0e3b774..edd15fa3c9 100644 --- a/src/motif/spinbutt.cpp +++ b/src/motif/spinbutt.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "spinbutt.h" #endif @@ -183,7 +183,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 +274,6 @@ bool wxSpinButton::Create( wxWindow *parent, wxWindowID id, SetName(name); - InitBase(); - m_windowId = ( id == -1 ) ? NewControlId() : id; bool isVert = IsVertical();