]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/font/font.cpp
changes wxDirExists() to accept wxString instead of wxChar*, so that it can be used...
[wxWidgets.git] / samples / font / font.cpp
index 0773236da9466f551b92c5f7f07d98df3c1ae1f8..722c813fb31a58311739b32033ac81dd8e696514 100644 (file)
@@ -234,6 +234,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(wxT("Font wxWidgets demo"),
                                  wxPoint(50, 50), wxSize(600, 400));