]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/statbox.cpp
Added wxMenu::Delete() and fixed some menu deleted memory
[wxWidgets.git] / src / gtk1 / statbox.cpp
index 84fd9673ffdb062ef414a56c3d7b72173f728d18..d6a4a6852bbd139a6f24c8dcf4e0b7eae12521c8 100644 (file)
@@ -41,7 +41,12 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label
 {
     m_needParent = TRUE;
 
-    PreCreation( parent, id, pos, size, style, name );
+    if (!PreCreation( parent, pos, size ) ||
+        !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
+    {
+        wxFAIL_MSG( wxT("wxStaticBox creation failed") );
+       return FALSE;
+    }
 
     m_isStaticBox = TRUE;