X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/885a9fe9a82a8ac3a6a3a09ce92dcab7dc02d2d7..f1d5aa4eca541a2f90044a63f555985d6bd4adf3:/samples/xrc/xrcdemo.cpp diff --git a/samples/xrc/xrcdemo.cpp b/samples/xrc/xrcdemo.cpp index db9ac58d28..6c93d4b75b 100644 --- a/samples/xrc/xrcdemo.cpp +++ b/samples/xrc/xrcdemo.cpp @@ -60,6 +60,9 @@ IMPLEMENT_APP(MyApp) // 'Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + // If there is any of a certain format of image in the xrcs, then first // load a handler for that image type. This example uses XPMs, but if // you want PNGs, then add a PNG handler, etc. See wxImage::AddHandler()