X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f37db42915a02ad73ac3c692fc6f76c10c1c5b9..593177c566d3471189571641fb9db8efa27ed551:/samples/html/printing/printing.cpp diff --git a/samples/html/printing/printing.cpp b/samples/html/printing/printing.cpp index 6ce878f0a5..411d7a03b6 100644 --- a/samples/html/printing/printing.cpp +++ b/samples/html/printing/printing.cpp @@ -128,6 +128,9 @@ IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + #if wxUSE_LIBPNG wxImage::AddHandler(new wxPNGHandler); #endif