]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/spinctrl.cpp
compilation fix: only us-ascii is safe in sources
[wxWidgets.git] / src / gtk / spinctrl.cpp
index 80d5007a43e1c664a9b0fed0854bf588e710bf18..18e8e0dff21043ba40bf6b1bd96044244fd19225 100644 (file)
@@ -298,16 +298,12 @@ bool wxSpinCtrl::IsOwnGtkWindow( GdkWindow *window )
     return FALSE;
 }
 
-void wxSpinCtrl::ApplyWidgetStyle()
-{
-    SetWidgetStyle();
-    gtk_widget_set_style( m_widget, m_widgetStyle );
-}
-
 wxSize wxSpinCtrl::DoGetBestSize() const
 {
     wxSize ret( wxControl::DoGetBestSize() );
-    return wxSize(95, ret.y);
+    wxSize best(95, ret.y);
+    CacheBestSize(best);
+    return best;
 }
 
 // static