]> git.saurik.com Git - wxWidgets.git/commitdiff
fix misusage of wxFlexGridSizer that was causing an assert
authorBenjamin Williams <bwilliams@kirix.com>
Thu, 26 Mar 2009 08:34:27 +0000 (08:34 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Thu, 26 Mar 2009 08:34:27 +0000 (08:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/aui/auidemo.cpp

index fca8e1c612b5199a06c11934d0c8a2048386abba..0dacca9fc062c9ffcc4dd5a37bf6e5eef6d92bcd 100644 (file)
@@ -1580,7 +1580,7 @@ wxAuiNotebook* MyFrame::CreateNotebook()
    ctrl->AddPage(CreateHTMLCtrl(ctrl), wxT("Welcome to wxAUI") , false, page_bmp);
 
    wxPanel *panel = new wxPanel( ctrl, wxID_ANY );
-   wxFlexGridSizer *flex = new wxFlexGridSizer( 2 );
+   wxFlexGridSizer *flex = new wxFlexGridSizer( 4, 2, 0, 0 );
    flex->AddGrowableRow( 0 );
    flex->AddGrowableRow( 3 );
    flex->AddGrowableCol( 1 );