git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28125
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxAppConsole::Initialize(int& argc, wxChar **argv)
{
+ // If some code logged something before wxApp instance was created,
+ // wxLogStderr was set as the target. Undo it here by destroying the
+ // current target. It will be re-created next time logging is needed, but
+ // this time wxAppTraits will be used:
+ delete wxLog::SetActiveTarget(NULL);
+
// remember the command line arguments
this->argc = argc;
this->argv = argv;