]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/bmpbuttn.h
fix the bug which prevented the same wxFile/DirDialog object from being used twice...
[wxWidgets.git] / include / wx / cocoa / bmpbuttn.h
index d2d003c133cb36a4b5de4f714f390f5e9f19b7bb..7df20950eae85a5467f9da88e9d9b669043616e7 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     2003/03/16
 // RCS-ID:      $Id:
 // Copyright:   (c) 2003 David Elliott
-// Licence:    wxWidgets licence
+// Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef __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__