]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/slider.cpp
fixed the rule for the DLL so it doesn't build the .lib file twice
[wxWidgets.git] / src / gtk1 / slider.cpp
index 504b1cfb5ac895ac50bff146ab70f9d85a8fa289..5d115ba3b87651642e5bc06a620f8110a31d909a 100644 (file)
@@ -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;