]> git.saurik.com Git - wxWidgets.git/commitdiff
new layout was messing with separator positions
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 Feb 2005 20:21:35 +0000 (20:21 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 Feb 2005 20:21:35 +0000 (20:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toolbar.cpp

index 1df959231d5d48c0d66dd5c65c54a85b3a2d474c..45c2ae0e2780f768683bb12bc7a5e790b84103db 100644 (file)
@@ -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 ;
         }
     }