]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
wxMSW compilation fixes for old mingw32
[wxWidgets.git] / src / gtk / control.cpp
index b369c4d8c11ac1527db2a57fe5de03b41f440fde..d8f6b14c9d4072fee1fd8a99d6ce8b5b2d99f783 100644 (file)
@@ -74,7 +74,12 @@ wxString wxControl::GetLabel() const
 
 wxSize wxControl::DoGetBestSize() const
 {
+    // Do not return any arbitrary default value...
+    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 );