From ba7ce6a0b7f74d33ca1a80e2afb90ceeb5b19d49 Mon Sep 17 00:00:00 2001 From: Michael Bedward Date: Tue, 21 Sep 1999 05:22:34 +0000 Subject: [PATCH] Added check to ensure that style arg to ctor has either wxHORIZONTAL or 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();