X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be5a51fb592f3fa2ba38ac6cd1e488d6d806058c..4d01e350fe2d8cb15c068d579c4022345f3ff0c0:/samples/layout/layout.cpp diff --git a/samples/layout/layout.cpp b/samples/layout/layout.cpp index ad7d19a860..5a7e7a8c59 100644 --- a/samples/layout/layout.cpp +++ b/samples/layout/layout.cpp @@ -326,8 +326,7 @@ MySizerDialog::MySizerDialog(wxWindow *parent, const wxChar *title) wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL ); wxNotebook *notebook = new wxNotebook( this, wxID_ANY ); - wxNotebookSizer *nbs = new wxNotebookSizer( notebook ); - topsizer->Add( nbs, 1, wxGROW ); + topsizer->Add( notebook, 1, wxGROW ); wxButton *button = new wxButton( this, wxID_OK, _T("OK") ); topsizer->Add( button, 0, wxALIGN_RIGHT | wxALL, 10 );