]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/statbmp.cpp
Warning fixes after recent library changes.
[wxWidgets.git] / src / mac / classic / statbmp.cpp
index 88c42425cf57d7c80a01427be2025002f0b5f55c..9bd84f6aa8c280b023e91665fda6a390add5cb03 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     1998-01-01
 // RCS-ID:      $Id$
 // Copyright:   (c) Stefan Csomor
-// Licence:       wxWidgets licence
+// Licence:       wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
@@ -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() ;
 }