From: Robin Dunn Date: Fri, 12 Jan 2007 18:27:27 +0000 (+0000) Subject: Fix for problem when Realize is re-called on a vertical toolbar, it X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e49426a206f9933702526d733b1ae944381f03de 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 --- diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index 64a3802e26..8d5ad8a0c7 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -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();