don't do anything in wxLogBuffer::Flush() if there are no messages (patch 1216159)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-06-07 12:05:40 +00:00
parent a20599da89
commit a23bbe9364

View File

@@ -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))