X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..f4f5d5697dc5e34a5582061dbd857d1cd4326f91:/samples/docview/docview.cpp?ds=inline diff --git a/samples/docview/docview.cpp b/samples/docview/docview.cpp index b8d95575ac..3a2f1a5582 100644 --- a/samples/docview/docview.cpp +++ b/samples/docview/docview.cpp @@ -55,6 +55,9 @@ MyApp::MyApp(void) bool MyApp::OnInit(void) { + if ( !wxApp::OnInit() ) + return false; + //// Find out if we're: //// multiple window: multiple windows, each view in a separate frame //// single window: one view (within the main frame) and one document at a time, as in Windows Write.