]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
SWIG code updates
[wxWidgets.git] / src / gtk / control.cpp
index b369c4d8c11ac1527db2a57fe5de03b41f440fde..959092087b2c1bc732a1eb0622be9c842f926afb 100644 (file)
@@ -74,6 +74,9 @@ 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;
     (* GTK_WIDGET_CLASS( GTK_OBJECT(m_widget)->klass )->size_request )
         (m_widget, &req );