X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/140316c27863b729b4d468bab01298e49eb4ef80..b70362998b8f562923f6ed6708f06537ac056cd4:/samples/html/about/about.cpp?ds=sidebyside 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);