From c46b98daaf2f50e0ee9fe3effeb266b0fd02f2b0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Feb 2005 15:43:58 +0000 Subject: [PATCH 1/1] refresh bitmap when it's label changes, this is necessary for wxMSW and maybe wxGTK and shouldn't hurt much for other ports git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/bmpbuttn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/bmpbuttn.h b/include/wx/bmpbuttn.h index 1bc0a1239b..442369808c 100644 --- a/include/wx/bmpbuttn.h +++ b/include/wx/bmpbuttn.h @@ -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, -- 2.45.2