diff --git a/src/motif/slider.cpp b/src/motif/slider.cpp index 5d3d92125e..756d5fa580 100644 --- a/src/motif/slider.cpp +++ b/src/motif/slider.cpp @@ -51,7 +51,10 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id, const wxSize& size, long style, const wxValidator& validator, const wxString& name) -{ +{ + if ( !((style & wxSL_HORIZONTAL) || (style & wxSL_VERTICAL)) ) + style |= wxSL_HORIZONTAL; + SetName(name); SetValidator(validator); m_backgroundColour = parent->GetBackgroundColour();