]> git.saurik.com Git - wxWidgets.git/commitdiff
tentative fix for BestSize problems (non-native toolbar)
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 18 Sep 2005 19:13:27 +0000 (19:13 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 18 Sep 2005 19:13:27 +0000 (19:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toolbar.cpp

index 506f9ede00fd081c69e1a70c55c9c457011da43c..4fe91d7f944bce289b808fe71683e630173227f5 100644 (file)
@@ -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 );