]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/vscroll/vstest.cpp
Optimization: don't set the base background colour
[wxWidgets.git] / samples / vscroll / vstest.cpp
index ff4b716705b43565e45e40732d7e295c2835aa31..432c032a7ef9634d6283be50ee8efc2900b359b6 100644 (file)
@@ -213,6 +213,9 @@ IMPLEMENT_APP(VScrollApp)
 // 'Main program' equivalent: the program execution "starts" here
 bool VScrollApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // create the main application window
     VScrollFrame *frame = new VScrollFrame;