]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/init.cpp
fixed weird error
[wxWidgets.git] / src / common / init.cpp
index bc304d3be815a6be13d387ed77ae609d1653cecc..32288fd1e325fbcbc58fedcf72626754ff81d450 100644 (file)
@@ -245,7 +245,11 @@ bool wxEntryStart(int& argc, wxChar **argv)
         if ( fnCreate )
         {
             // he did, try to create the custom wxApp object
-            app.Set((*fnCreate)());
+            // 
+            // NB: cast is needed because for the backwards-compatibility
+            //     reasons wxTheApp is really a wxApp and not just 
+            //     wxAppConsole...
+            app.Set((wxApp*)(*fnCreate)());
         }
     }