]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/virtual/virtual.cpp
generate #line references to source .xrc files in wxrc --gettext (patch #1803492...
[wxWidgets.git] / samples / html / virtual / virtual.cpp
index 5e1f9da2c7a67b20acfd2428778a3ba88c8cdd61..27c1b8a57a8b52fc5a2fd8633fec0c794a22b26b 100644 (file)
@@ -121,7 +121,7 @@ wxFSFile* MyVFS::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& location)
    Minimal_Forward,
    
     // controls start here (the numbers are, of course, arbitrary)
-   Minimal_Text = 1000,
+   Minimal_Text = 1000
    };
 
 // ----------------------------------------------------------------------------
@@ -155,6 +155,9 @@ wxFSFile* MyVFS::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& location)
    // `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));