X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f4d35b8045442f97ed74ba2aa633e843adae7ef..e7492fa205a0a8a548aa437629636a42269c7b88:/samples/sashtest/sashtest.cpp diff --git a/samples/sashtest/sashtest.cpp b/samples/sashtest/sashtest.cpp index fb3accf647..16dd9ff186 100644 --- a/samples/sashtest/sashtest.cpp +++ b/samples/sashtest/sashtest.cpp @@ -40,6 +40,9 @@ int winNumber = 1; // Initialise this in OnInit, not statically bool MyApp::OnInit(void) { + if ( !wxApp::OnInit() ) + return false; + // Create the main frame window frame = new MyFrame(NULL, wxID_ANY, _T("Sash Demo"), wxPoint(0, 0), wxSize(500, 400),