Fix for problem when Realize is re-called on a vertical toolbar, it

was making the tools layout horizontally.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-01-12 18:27:27 +00:00
parent 7749035c4e
commit e49426a206

View File

@@ -1071,9 +1071,9 @@ bool wxToolBar::Realize()
}
else if ( m_nButtons > 0 ) // vertical non empty toolbar
{
if ( m_maxRows == 0 )
// if not set yet, have one column
SetRows(m_nButtons);
// if not set yet, have one column
m_maxRows = 1;
SetRows(m_nButtons);
}
InvalidateBestSize();