From b13095df45deeec01819551fb725fc2a6da2c7d0 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 18 Sep 2005 19:13:27 +0000 Subject: [PATCH] tentative fix for BestSize problems (non-native toolbar) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/toolbar.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mac/carbon/toolbar.cpp b/src/mac/carbon/toolbar.cpp index 506f9ede00..4fe91d7f94 100644 --- a/src/mac/carbon/toolbar.cpp +++ b/src/mac/carbon/toolbar.cpp @@ -649,6 +649,13 @@ void wxToolBar::DoGetSize( int *width, int *height ) const wxToolBarBase::DoGetSize( width, height ); } +wxSize wxToolBar::DoGetBestSize() const +{ + int width , height ; + DoGetSize( &width , &height ) ; + return wxSize( width , height ) ; +} + void wxToolBar::SetWindowStyleFlag( long style ) { wxToolBarBase::SetWindowStyleFlag( style ); -- 2.45.2