X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcf924a345ea8ffbc1cf6b40b5f75c6005e504c0..a9221a950894036f6ae5d79af8fab694a5504eed:/src/gtk1/slider.cpp diff --git a/src/gtk1/slider.cpp b/src/gtk1/slider.cpp index 504b1cfb5a..5d115ba3b8 100644 --- a/src/gtk1/slider.cpp +++ b/src/gtk1/slider.cpp @@ -98,9 +98,12 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id, m_acceptsFocus = TRUE; m_needParent = TRUE; - PreCreation( parent, id, pos, size, style, name ); - - SetValidator( validator ); + if (!PreCreation( parent, pos, size ) || + !CreateBase( parent, id, pos, size, style, validator, name )) + { + wxFAIL_MSG( _T("wxSlider creation failed") ); + return FALSE; + } m_oldPos = 0.0;