]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/except/except.cpp
fix typo in previous commit
[wxWidgets.git] / samples / except / except.cpp
index f401d6ce186e7675ac98ddbb51cc5e555601aea6..95502800c79324f26741cf6a53083758e778ecc8 100644 (file)
@@ -123,6 +123,8 @@ public:
     void OnHandleCrash(wxCommandEvent& event);
 #endif
 
+protected:
+
     // 1st-level exception handling: we overload ProcessEvent() to be able to
     // catch exceptions which occur in MyFrame methods here
     virtual bool ProcessEvent(wxEvent& event);
@@ -475,8 +477,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))