]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statbmp.cpp
RTTI and exceptions settings for WinCE are restored.
[wxWidgets.git] / src / msw / statbmp.cpp
index f7c3e6e2061937c9665f2fdba0431359bb0c55cf..61d7b01e76992ed7721305be9c01336335066c55 100644 (file)
@@ -208,7 +208,11 @@ void wxStaticBitmap::Free()
 wxSize wxStaticBitmap::DoGetBestSize() const
 {
     if ( ImageIsOk() )
-        return wxSize(m_image->GetWidth(), m_image->GetHeight());
+    {
+        wxSize best(m_image->GetWidth(), m_image->GetHeight());
+        CacheBestSize(best);
+        return best;
+    }
 
     // this is completely arbitrary
     return wxSize(16, 16);