From: Stefan Csomor Date: Fri, 18 Feb 2005 20:21:35 +0000 (+0000) Subject: new layout was messing with separator positions X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5a904a32e64d98e76ca69a7e8830a2747cfe1aba new layout was messing with separator positions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/toolbar.cpp b/src/mac/carbon/toolbar.cpp index 1df959231d..45c2ae0e27 100644 --- a/src/mac/carbon/toolbar.cpp +++ b/src/mac/carbon/toolbar.cpp @@ -99,8 +99,10 @@ public: { // separator size wxSize sz = GetToolBar()->GetToolSize() ; - sz.x /= 4 ; - sz.y /= 4 ; + if ( GetToolBar()->GetWindowStyleFlag() & wxTB_VERTICAL ) + sz.y /= 4 ; + else + sz.x /= 4 ; return sz ; } }