]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/msgout.cpp
wxVariant <-> wxAny conversion functionality. Includes implicit construction of wxAny...
[wxWidgets.git] / src / common / msgout.cpp
index 0e663c40fc2e791e902e4b7cfe6cba33c8139cda..804bec9b47144669db8b0978bfaa6f4ae319a966 100644 (file)
@@ -144,9 +144,11 @@ void wxMessageOutputStderr::Output(const wxString& str)
     const wxWX2MBbuf buf = strWithLF.mb_str();
 
     if ( buf )
-        fprintf(stderr, "%s", (const char*) buf);
+        fprintf(m_fp, "%s", (const char*) buf);
     else // print at least something
-        fprintf(stderr, "%s", (const char*) strWithLF.ToAscii());
+        fprintf(m_fp, "%s", (const char*) strWithLF.ToAscii());
+
+    fflush(m_fp);
 }
 
 // ----------------------------------------------------------------------------