]> git.saurik.com Git - wxWidgets.git/commitdiff
Implement wxBitmapButton::DoGetBestSize() to call wxButtonBase version so
authorDavid Elliott <dfe@tgwbd.org>
Tue, 5 Oct 2004 01:50:17 +0000 (01:50 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Tue, 5 Oct 2004 01:50:17 +0000 (01:50 +0000)
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

index 1c52c5debe4030eccfc38476efdbb2326a65ba43..7df20950eae85a5467f9da88e9d9b669043616e7 100644 (file)
@@ -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__