]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxrc/wxrc.cpp
fix for crash when pressing TAB in the tree text control
[wxWidgets.git] / utils / wxrc / wxrc.cpp
index f36768d150afa42b8e7fd9d34bac03c64c2095a0..79d7540fc356ef193df2e640600b014cf7cd8dc8 100644 (file)
@@ -98,6 +98,12 @@ int XmlResApp::OnRun()
         { wxCMD_LINE_NONE }
     };
 
+#if wxUSE_GUI
+    // VS: I need reasonable output to console from wxCmdLineParser
+    wxLog::SetTimestamp(NULL);
+    delete wxLog::SetActiveTarget(new wxLogStderr);
+#endif
+
     wxXmlDocument::AddHandler(new wxXmlIOHandlerBinZ);
 
     wxCmdLineParser parser(cmdLineDesc, argc, argv);