somehow log target wasn't being created automatically anymore. Restored.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-09-20 21:05:19 +00:00
parent dfc5454127
commit 803bf1c581

View File

@@ -69,7 +69,13 @@ public:
// sink function
static void OnLog(wxLogLevel level, const char *szString)
{ if ( ms_pLogger != 0 ) ms_pLogger->DoLog(level, szString); }
{
wxLog *pLogger = GetActiveTarget();
if ( pLogger )
{
pLogger->DoLog(level, szString);
}
}
// message buffering
// flush shows all messages if they're not logged immediately