]> git.saurik.com Git - wxWidgets.git/commitdiff
don't call SetSize when creating the 2nd toolbar, this just results in unnecessary...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 Jul 2005 19:00:54 +0000 (19:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 Jul 2005 19:00:54 +0000 (19:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/toolbar/toolbar.cpp

index 062d2f7ec818998fc4c86eaa17ab7f6ae4094804..a1155218972cab31582e0f54d136a8e1ef968964 100644 (file)
@@ -531,8 +531,7 @@ void MyFrame::LayoutChildren()
     int offset;
     if ( m_tbar )
     {
-        m_tbar->SetSize(wxDefaultCoord, size.y);
-        m_tbar->Move(0, 0);
+        m_tbar->SetSize(0, 0, wxDefaultCoord, size.y);
 
         offset = m_tbar->GetSize().x;
     }