]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for problem when Realize is re-called on a vertical toolbar, it
authorRobin Dunn <robin@alldunn.com>
Fri, 12 Jan 2007 18:27:27 +0000 (18:27 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 12 Jan 2007 18:27:27 +0000 (18:27 +0000)
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

index 64a3802e260ea5492881730cc2b425b450ef07f0..8d5ad8a0c7d5dac72e86129dee9cb1d9a6d4a61b 100644 (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();