new layout was messing with separator positions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2005-02-18 20:21:35 +00:00
parent 30f1ed9e44
commit 5a904a32e6

View File

@ -99,8 +99,10 @@ public:
{ {
// separator size // separator size
wxSize sz = GetToolBar()->GetToolSize() ; wxSize sz = GetToolBar()->GetToolSize() ;
sz.x /= 4 ; if ( GetToolBar()->GetWindowStyleFlag() & wxTB_VERTICAL )
sz.y /= 4 ; sz.y /= 4 ;
else
sz.x /= 4 ;
return sz ; return sz ;
} }
} }