]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/scrolbar.cpp
Added and corrected a few more html makefiles,
[wxWidgets.git] / src / gtk1 / scrolbar.cpp
index 038d908e20161c36b144d924bee583da766d42a4..56cc1d6d5830045d23c8bdecf157f491de83ed05 100644 (file)
@@ -137,9 +137,12 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
     m_needParent = TRUE;
     m_acceptsFocus = 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("wxScrollBar creation failed") );
+       return FALSE;
+    }
 
     m_oldPos = 0.0;