new layout was messing with separator positions
[wxWidgets.git] / 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 ;
         }
     }