From 908686c52ecad0043720bbd2ea097be45c10ef73 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Tue, 5 Oct 2004 01:50:17 +0000 Subject: [PATCH] Implement wxBitmapButton::DoGetBestSize() to call wxButtonBase version so that the newly implement wxButton::DoGetBestSize() is not used. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/cocoa/bmpbuttn.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/wx/cocoa/bmpbuttn.h b/include/wx/cocoa/bmpbuttn.h index 1c52c5debe..7df20950ea 100644 --- a/include/wx/cocoa/bmpbuttn.h +++ b/include/wx/cocoa/bmpbuttn.h @@ -54,6 +54,9 @@ protected: // Implementation // ------------------------------------------------------------------------ public: + // The wxButton::DoGetBestSize is not correct for bitmap buttons + wxSize DoGetBestSize() const + { return wxButtonBase::DoGetBestSize(); } }; #endif // __WX_COCOA_BMPBUTTN_H__ -- 2.50.0