From: David Elliott Date: Tue, 5 Oct 2004 01:50:17 +0000 (+0000) Subject: Implement wxBitmapButton::DoGetBestSize() to call wxButtonBase version so X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/908686c52ecad0043720bbd2ea097be45c10ef73 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 --- 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__