]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/spinctrl.cpp
fixed VC6 compilation
[wxWidgets.git] / src / gtk / spinctrl.cpp
index 9390128cf0e2cd611e2c34472949b6765f1720bc..18e8e0dff21043ba40bf6b1bd96044244fd19225 100644 (file)
@@ -301,7 +301,9 @@ bool wxSpinCtrl::IsOwnGtkWindow( GdkWindow *window )
 wxSize wxSpinCtrl::DoGetBestSize() const
 {
     wxSize ret( wxControl::DoGetBestSize() );
-    return wxSize(95, ret.y);
+    wxSize best(95, ret.y);
+    CacheBestSize(best);
+    return best;
 }
 
 // static