X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3fc1755150fd63134568285f2433544fa51af53..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/common/log.cpp diff --git a/src/common/log.cpp b/src/common/log.cpp index 6397766ef6..0471c87c76 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -528,9 +528,12 @@ void wxLog::Flush() void wxLogBuffer::Flush() { - wxMessageOutputBest out; - out.Printf(_T("%s"), m_str.c_str()); - m_str.clear(); + if ( !m_str.empty() ) + { + wxMessageOutputBest out; + out.Printf(_T("%s"), m_str.c_str()); + m_str.clear(); + } } void wxLogBuffer::DoLogString(const wxChar *szString, time_t WXUNUSED(t))