From: Benjamin Williams Date: Thu, 26 Mar 2009 08:34:27 +0000 (+0000) Subject: fix misusage of wxFlexGridSizer that was causing an assert X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b6d74808f6d6a3fa21dd1e1098c42469684961a4 fix misusage of wxFlexGridSizer that was causing an assert git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/aui/auidemo.cpp b/samples/aui/auidemo.cpp index fca8e1c612..0dacca9fc0 100644 --- a/samples/aui/auidemo.cpp +++ b/samples/aui/auidemo.cpp @@ -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 );