X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8d1818419134415331bfe9f6d4703a8f0742caa..d5d58a93c327198b8d1dd781c7d07626d2b2062a:/src/motif/spinbutt.cpp diff --git a/src/motif/spinbutt.cpp b/src/motif/spinbutt.cpp index 99bebdfee0..4263105156 100644 --- a/src/motif/spinbutt.cpp +++ b/src/motif/spinbutt.cpp @@ -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 ) { @@ -225,6 +225,8 @@ bool wxArrowButton::Create( wxSpinButton* parent, wxWindowID id, AttachWidget( parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y ); + SetForegroundColour( parent->GetBackgroundColour() ); + return TRUE; }