]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/bmpbuttn.h
Patch from Jed Burgess that optionally allows the grid to notify when
[wxWidgets.git] / include / wx / bmpbuttn.h
index d1fe53738a512669ff9642f5fad2c204e08bd96d..54a38c432248daccb7db01d3e98db7b11a94d8e6 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     25.08.00
 // RCS-ID:      $Id$
 // Copyright:   (c) 2000 Vadim Zeitlin
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_BMPBUTTON_H_BASE_
@@ -67,7 +67,7 @@ public:
 
 protected:
     // function called when any of the bitmaps changes
-    virtual void OnSetBitmap() { }
+    virtual void OnSetBitmap() { InvalidateBestSize(); }
 
     // the bitmaps for various states
     wxBitmap m_bmpNormal,