]> git.saurik.com Git - wxWidgets.git/commitdiff
refresh bitmap when it's label changes, this is necessary for wxMSW and maybe wxGTK...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2005 15:43:58 +0000 (15:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2005 15:43:58 +0000 (15:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/bmpbuttn.h

index 1bc0a1239ba05fb5315a9efc0de985d9ccbb44cb..442369808ce56b0300e6718e550d927034a0a5b7 100644 (file)
@@ -67,7 +67,7 @@ public:
 
 protected:
     // function called when any of the bitmaps changes
-    virtual void OnSetBitmap() { InvalidateBestSize(); }
+    virtual void OnSetBitmap() { InvalidateBestSize(); Refresh(); }
 
     // the bitmaps for various states
     wxBitmap m_bmpNormal,