]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/gauge.cpp
correction after the previous commit which introduced bug 1888014
[wxWidgets.git] / src / gtk / gauge.cpp
index e0b4b49010072b7797d7001f9e3a83d0b36bab21..aaa124506cabbb677509cb9c73f52c164a3d83df 100644 (file)
@@ -31,8 +31,6 @@ bool wxGauge::Create( wxWindow *parent,
                       const wxValidator& validator,
                       const wxString& name )
 {
-    m_needParent = true;
-
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, validator, name ))
     {
@@ -55,7 +53,7 @@ bool wxGauge::Create( wxWindow *parent,
     m_parent->DoAddChild( this );
 
     PostCreation(size);
-    SetBestSize(size);
+    SetInitialSize(size);
 
     return true;
 }