From e49426a206f9933702526d733b1ae944381f03de Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 12 Jan 2007 18:27:27 +0000 Subject: [PATCH] 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 --- src/msw/tbar95.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.45.2