X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..0576cd9ebe3430bdf7acf69e1dd1df92273f32ad:/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);