more minor changes to wxLogWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -714,8 +714,10 @@ void wxLogWindow::DoLog(wxLogLevel level, const char *szString)
|
|||||||
((wxLogWindow *)m_pOldLog)->DoLog(level, szString);
|
((wxLogWindow *)m_pOldLog)->DoLog(level, szString);
|
||||||
}
|
}
|
||||||
|
|
||||||
// and this will format it nicely and call our DoLogString()
|
if ( m_pLogFrame ) {
|
||||||
wxLog::DoLog(level, szString);
|
// and this will format it nicely and call our DoLogString()
|
||||||
|
wxLog::DoLog(level, szString);
|
||||||
|
}
|
||||||
|
|
||||||
m_bHasMessages = TRUE;
|
m_bHasMessages = TRUE;
|
||||||
}
|
}
|
||||||
@@ -756,9 +758,6 @@ wxLogWindow::~wxLogWindow()
|
|||||||
{
|
{
|
||||||
// may be NULL if log frame already auto destroyed itself
|
// may be NULL if log frame already auto destroyed itself
|
||||||
delete m_pLogFrame;
|
delete m_pLogFrame;
|
||||||
|
|
||||||
// delete the old log
|
|
||||||
delete m_pOldLog;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //WX_TEST_MINIMAL
|
#endif //WX_TEST_MINIMAL
|
||||||
|
Reference in New Issue
Block a user