]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
wxMSW compilation fixes for old mingw32
[wxWidgets.git] / src / gtk / control.cpp
index 959092087b2c1bc732a1eb0622be9c842f926afb..d8f6b14c9d4072fee1fd8a99d6ce8b5b2d99f783 100644 (file)
@@ -78,6 +78,8 @@ wxSize wxControl::DoGetBestSize() const
     wxASSERT_MSG( m_widget, wxT("DoGetBestSize called before creation") );
 
     GtkRequisition req;
+    req.width = 2;
+    req.height = 2;
     (* GTK_WIDGET_CLASS( GTK_OBJECT(m_widget)->klass )->size_request )
         (m_widget, &req );