]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/richtext/richtext.cpp
fixed incorrectly reported WXWIN_COMPATIBILITY_2_6 value in summary
[wxWidgets.git] / samples / richtext / richtext.cpp
index 2f0fb87c698a589e117ef6ebff4896dffb4ce8b0..9ed7c48a04a8daf2b60b4632da60efab02cf758d 100644 (file)
@@ -333,6 +333,9 @@ IMPLEMENT_APP(MyApp)
 // 'Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
 #if wxUSE_HELP
     wxHelpProvider::Set(new wxSimpleHelpProvider);
 #endif