X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/24bc71f48bdf755884649c5ff15136adac300694..c3a58b249e576b73b01cd74deb1cf879aa6e1975:/src/msw/tbar95.cpp 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();