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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user