]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/stattext.cpp
corrected off by 1 error in cMB2WC() call (thanks valgrind)
[wxWidgets.git] / src / gtk / stattext.cpp
index c60fcf3f114b77b8553f0d5cd515e87d3697bb6f..a10e98f85bce2f78c4b6b83d4c17298d1fb6a2ff 100644 (file)
@@ -52,13 +52,11 @@ bool wxStaticText::Create(wxWindow *parent,
                           long style,
                           const wxString &name )
 {
-    m_needParent = TRUE;
-
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
     {
         wxFAIL_MSG( wxT("wxStaticText creation failed") );
-        return FALSE;
+        return false;
     }
 
     m_widget = gtk_label_new(NULL);