]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/layout/layout.cpp
Open files in binary mode to convert DOS to Unix
[wxWidgets.git] / samples / layout / layout.cpp
index ad7d19a860ff4a7d484b78ffed221934b8f440c0..5a7e7a8c5943774c64922185bddea3bf42a6c29b 100644 (file)
@@ -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 );