]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/statbmp.cpp
Include missing.h to find O_* flags.
[wxWidgets.git] / src / mac / carbon / statbmp.cpp
index f55267cb87230bffce2509fd18c70f60a2d68b6d..69b6f8b448c28a098485690e60044baa2372c065 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__
@@ -59,6 +59,7 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id,
 void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap)
 {
     m_bitmap = bitmap;
+    InvalidateBestSize();
     SetSize(GetBestSize());
     Refresh() ;
 }