]> git.saurik.com Git - wxWidgets.git/commitdiff
Added check to ensure that style arg to ctor has either wxHORIZONTAL or
authorMichael Bedward <mbedward@ozemail.com.au>
Tue, 21 Sep 1999 05:22:34 +0000 (05:22 +0000)
committerMichael Bedward <mbedward@ozemail.com.au>
Tue, 21 Sep 1999 05:22:34 +0000 (05:22 +0000)
wxVERTICAL. Without one of these the slider doesn't display under
Motif.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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();