]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statbmp.cpp
best size handling fix
[wxWidgets.git] / src / msw / statbmp.cpp
index b437dcf26aeaca5c57c4372a54854db16e502221..86fda57454ec9392b4ca1e02c1d213757942cdaf 100644 (file)
@@ -217,6 +217,7 @@ void wxStaticBitmap::SetImage( const wxGDIImage* image )
 {
     wxGDIImage* convertedImage = ConvertImage( *image );
     SetImageNoCopy( convertedImage );
+    InvalidateBestSize();
 }
 
 void wxStaticBitmap::SetImageNoCopy( wxGDIImage* image)