]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/log.h
const added to GetBitmap it was my fault.
[wxWidgets.git] / include / wx / log.h
index 00b4cdd1d1ed65dc1dc70ee12b7a785dedfdb928..0c178347d97c90d603fc2c3292b0c23010832408 100644 (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