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
This commit is contained in:
Vadim Zeitlin
2002-04-27 22:47:32 +00:00
parent e95f8fde77
commit 71debe95b6

View File

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