]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/button.cpp
setting foreground colour for wxCheckBox now works when using XP themes too
[wxWidgets.git] / src / msw / button.cpp
index b50d0c6bd88b9339ea7215f6be9a2c7cd99422bd..b9ac7363752d50a993e083be98e8056f419bec10 100644 (file)
@@ -241,7 +241,9 @@ wxSize wxButton::DoGetBestSize() const
         return sz;
     }
 
-    return wxSize(wBtn, hBtn);
+    wxSize best(wBtn, hBtn);
+    CacheBestSize(best);
+    return best;
 }
 
 /* static */