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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user