]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbmp.cpp
adaptions to m_peer methods
[wxWidgets.git] / src / gtk / statbmp.cpp
index 63124409174f9b3e1da98564710f85e6dadf2db1..6ec5169750287457e07e8433c6b49035c6150010 100644 (file)
@@ -4,7 +4,7 @@
 // Author:      Robert Roebling
 // Id:          $Id$
 // Copyright:   (c) 1998 Robert Roebling
-// Licence:           wxWidgets licence
+// Licence:           wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
@@ -113,7 +113,8 @@ void wxStaticBitmap::SetBitmap( const wxBitmap &bitmap )
             gtk_pixmap_set( GTK_PIXMAP(m_widget), m_bitmap.GetPixmap(), mask );
         }
 
-        SetBestSize(wxSize(bitmap.GetWidth(), bitmap.GetHeight()));
+        InvalidateBestSize();
+        SetSize(GetBestSize());
     }
 }