fixed flushing of secondary log target in wxLogChain (patch 985711)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-07-25 16:02:54 +00:00
parent 00e092707b
commit 22dec51f90

View File

@ -630,12 +630,16 @@ void wxLogChain::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
{
// bogus cast just to access protected DoLog
((wxLogChain *)m_logOld)->DoLog(level, szString, t);
m_bHasMessages |= m_logOld->HasPendingMessages();
}
if ( m_logNew && m_logNew != this )
{
// as above...
((wxLogChain *)m_logNew)->DoLog(level, szString, t);
m_bHasMessages |= m_logNew->HasPendingMessages();
}
}