]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/propsize/propsize.cpp
added missing wxGUIAppTraits::SetLocale()
[wxWidgets.git] / samples / propsize / propsize.cpp
index f1ec087e41328d42371a57c11b939b40cdcb33d8..51610d2712decb70b57a3b8b3899da3dc1c68cc1 100644 (file)
@@ -81,7 +81,7 @@ private:
 enum
 {
     // menu items
-    Minimal_Quit = 1,
+    Minimal_Quit = 1
 };
 
 // ----------------------------------------------------------------------------
@@ -114,6 +114,9 @@ IMPLEMENT_APP(MyApp)
 // `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(_T("Proportional resize"),
                                  wxPoint(50, 50), wxSize(450, 340));