]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/spinctrl.cpp
invalidate selection when deleting the page changes its index (replaces patch 865500)
[wxWidgets.git] / src / gtk1 / 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