]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/except/except.cpp
fix typo
[wxWidgets.git] / samples / except / except.cpp
index f401d6ce186e7675ac98ddbb51cc5e555601aea6..5e487845d55ecac6530c86c686a9ff9f26b52621 100644 (file)
@@ -475,8 +475,7 @@ MyDialog::MyDialog(wxFrame *parent)
     sizerTop->Add(new wxButton(this, wxID_CANCEL, _T("&Cancel")),
                   0, wxCENTRE | wxALL, 5);
 
-    SetSizer(sizerTop);
-    sizerTop->Fit(this);
+    SetSizerAndFit(sizerTop);
 }
 
 void MyDialog::OnThrowInt(wxCommandEvent& WXUNUSED(event))