]> git.saurik.com Git - wxWidgets.git/commitdiff
Missed conditional compilation.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 13 Jul 2004 16:14:42 +0000 (16:14 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 13 Jul 2004 16:14:42 +0000 (16:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/appbase.cpp

index d15e4a5d415e8dc55bc86e2abfddd8a6c3b549c1..fc9ed075b9cd1c7e55d74efd08b1d701877e6aeb 100644 (file)
@@ -128,11 +128,13 @@ wxAppConsole::~wxAppConsole()
 
 bool wxAppConsole::Initialize(int& argc, wxChar **argv)
 {
+#if wxUSE_LOG 
     // 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);
+#endif // wxUSE_LOG
     
     // remember the command line arguments
     this->argc = argc;