]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/png/pngdemo.cpp
Committing in .
[wxWidgets.git] / samples / png / pngdemo.cpp
index 20faa8d94d804201b1ee69cc917c2984c9bf0a3b..0cd3cace278866115fcb061e0cbe4168d0e4668b 100644 (file)
@@ -27,6 +27,9 @@ IMPLEMENT_APP(MyApp)
 
 bool MyApp::OnInit(void)
 {
+  if ( !wxApp::OnInit() )
+    return false;
+
   wxImage::AddHandler(new wxPNGHandler);
 
   // Create the main frame window