X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..9d8fe14a97d1092989eecbe43c4e1f730fba17ad:/samples/erase/erase.cpp diff --git a/samples/erase/erase.cpp b/samples/erase/erase.cpp index 87070e96fc..94dd570ec4 100644 --- a/samples/erase/erase.cpp +++ b/samples/erase/erase.cpp @@ -117,6 +117,9 @@ IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + MyFrame *frame = new MyFrame; frame->Show(true);