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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user