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
This commit is contained in:
Michael Bedward 1999-09-21 05:22:34 +00:00
parent 23e4b7d824
commit ba7ce6a0b7

View File

@ -51,7 +51,10 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
const wxSize& size, long style, const wxSize& size, long style,
const wxValidator& validator, const wxValidator& validator,
const wxString& name) const wxString& name)
{ {
if ( !((style & wxSL_HORIZONTAL) || (style & wxSL_VERTICAL)) )
style |= wxSL_HORIZONTAL;
SetName(name); SetName(name);
SetValidator(validator); SetValidator(validator);
m_backgroundColour = parent->GetBackgroundColour(); m_backgroundColour = parent->GetBackgroundColour();