From 71debe95b622d4a0da22b0af69a0c28da8e33034 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Apr 2002 22:47:32 +0000 Subject: [PATCH] fixed uninitialized m_bPassMessages and wxLogChain::SetLog() which was completely wrong git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/log.cpp b/src/common/log.cpp index 9a182465b8..93842ef100 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -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; } -- 2.47.2