]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed uninitialized m_bPassMessages and wxLogChain::SetLog() which was completely...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Apr 2002 22:47:32 +0000 (22:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Apr 2002 22:47:32 +0000 (22:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/log.cpp

index 9a182465b82b15efb393e61fd95a900aecf39c50..93842ef1007a5dd9635b8355f2aa381db075cec5 100644 (file)
@@ -764,6 +764,8 @@ void wxLogStream::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
 
 wxLogChain::wxLogChain(wxLog *logger)
 {
+    m_bPassMessages = TRUE;
+
     m_logNew = logger;
     m_logOld = wxLog::SetActiveTarget(this);
 }
@@ -781,8 +783,6 @@ void wxLogChain::SetLog(wxLog *logger)
     if ( m_logNew != this )
         delete m_logNew;
 
-    wxLog::SetActiveTarget(logger);
-
     m_logNew = logger;
 }