Missed conditional compilation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -128,11 +128,13 @@ wxAppConsole::~wxAppConsole()
|
|||||||
|
|
||||||
bool wxAppConsole::Initialize(int& argc, wxChar **argv)
|
bool wxAppConsole::Initialize(int& argc, wxChar **argv)
|
||||||
{
|
{
|
||||||
|
#if wxUSE_LOG
|
||||||
// If some code logged something before wxApp instance was created,
|
// If some code logged something before wxApp instance was created,
|
||||||
// wxLogStderr was set as the target. Undo it here by destroying the
|
// 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
|
// current target. It will be re-created next time logging is needed, but
|
||||||
// this time wxAppTraits will be used:
|
// this time wxAppTraits will be used:
|
||||||
delete wxLog::SetActiveTarget(NULL);
|
delete wxLog::SetActiveTarget(NULL);
|
||||||
|
#endif // wxUSE_LOG
|
||||||
|
|
||||||
// remember the command line arguments
|
// remember the command line arguments
|
||||||
this->argc = argc;
|
this->argc = argc;
|
||||||
|
Reference in New Issue
Block a user