X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/140316c27863b729b4d468bab01298e49eb4ef80..d2e6c14109b521468922c85c4041103aa28e39a9:/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);