]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/checkbox.cpp
Fixed some compile errors (MSVC++ 6) and some very strange link errors when
[wxWidgets.git] / src / gtk / checkbox.cpp
index 75cf233c65d5abd240121ddd41a4aacf00bfc677..af1d2592c3af9ad5472acf80fbb002d5c74e898d 100644 (file)
@@ -72,11 +72,12 @@ bool wxCheckBox::Create(wxWindow *parent,
     m_needParent = TRUE;
     m_acceptsFocus = TRUE;
 
-    PreCreation( parent, id, pos, size, style, name );
-
-#if wxUSE_VALIDATORS
-    SetValidator( validator );
-#endif
+    if (!PreCreation( parent, pos, size ) ||
+        !CreateBase( parent, id, pos, size, style, validator, name ))
+    {
+        wxFAIL_MSG( _T("wxCheckBox creation failed") );
+       return FALSE;
+    }
 
     wxControl::SetLabel( label );