X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2646f485163f410baaad5bcf49028c604a352d19..759f72726133ce3bdbe1c3a2f444aa816c7f46c9:/src/mac/classic/statbmp.cpp diff --git a/src/mac/classic/statbmp.cpp b/src/mac/classic/statbmp.cpp index 68bc4efa6a..9bd84f6aa8 100644 --- a/src/mac/classic/statbmp.cpp +++ b/src/mac/classic/statbmp.cpp @@ -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() ; }