]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/widget/widget.cpp
fixed LastRead() after Read(wxOutputStream&) (patch 1658301)
[wxWidgets.git] / samples / html / widget / widget.cpp
index 14ff729970c2aae4366194553cf7cabea2539dc8..2d5f6fca7478315c225b0d49c6157bb3558c9fa2 100644 (file)
@@ -156,6 +156,9 @@ IMPLEMENT_APP(MyApp)
 // `Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // Create the main application window
     MyFrame *frame = new MyFrame( _("wxHtmlWindow testing application"),
         wxDefaultPosition, wxSize(640, 480) );