]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/statbmp.cpp
Warning fix about assigning unused value + little source cleaning.
[wxWidgets.git] / src / mac / classic / statbmp.cpp
index 68bc4efa6ac16f137f7604be33f235dfddf12ae3..9bd84f6aa8c280b023e91665fda6a390add5cb03 100644 (file)
@@ -67,6 +67,7 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id,
 void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap)
 {
     m_bitmap = bitmap;
+    InvalidateBestSize();
     SetSize(wxSize(bitmap.GetWidth(), bitmap.GetHeight()));
     Refresh() ;
 }