]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/slider.cpp
Symantec makefile fixes (for OLE files)
[wxWidgets.git] / src / motif / slider.cpp
index 5d3d92125ef2dbef5a90812ebfc8d6cf4f734ead..756d5fa5807a94ca34ef3c6b19054e5632382852 100644 (file)
@@ -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();