X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e95f8fde77a7e5951b742db0ea50de4d6f1118ff..2245b2b2c3339ecf023e5880caa803610a5d1907:/src/common/log.cpp 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; }