X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/140316c27863b729b4d468bab01298e49eb4ef80..16a6b53ddc74d62fd1b6b82651d0e3859580c48a:/samples/html/about/about.cpp diff --git a/samples/html/about/about.cpp b/samples/html/about/about.cpp index 282eb37835..9613d9890f 100644 --- a/samples/html/about/about.cpp +++ b/samples/html/about/about.cpp @@ -85,6 +85,9 @@ IMPLEMENT_APP(MyApp) // `Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + // we use a PNG image in our HTML page wxImage::AddHandler(new wxPNGHandler);