X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa7a6a0e5caff5e1a678288aee86495a82212b6b..8d1547ef4697a49cf4f4b8f09f662705e064c416:/samples/dragimag/dragimag.cpp diff --git a/samples/dragimag/dragimag.cpp b/samples/dragimag/dragimag.cpp index 557f0a1ef9..88881823a3 100644 --- a/samples/dragimag/dragimag.cpp +++ b/samples/dragimag/dragimag.cpp @@ -368,6 +368,9 @@ MyApp::MyApp() bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + #if wxUSE_LIBPNG wxImage::AddHandler( new wxPNGHandler ); #endif