don't call LogLastRepeatIfNeeded() from dtor, it's too late to do it there anyhow; do call it from Flush() however (replaces patch 1857589)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -320,7 +320,6 @@ unsigned wxLog::LogLastRepeatIfNeededUnlocked()
|
|||||||
|
|
||||||
wxLog::~wxLog()
|
wxLog::~wxLog()
|
||||||
{
|
{
|
||||||
LogLastRepeatIfNeeded();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* static */
|
/* static */
|
||||||
@@ -502,7 +501,7 @@ void wxLog::DoLogString(const wxChar *WXUNUSED(szString), time_t WXUNUSED(t))
|
|||||||
|
|
||||||
void wxLog::Flush()
|
void wxLog::Flush()
|
||||||
{
|
{
|
||||||
// nothing to do here
|
LogLastRepeatIfNeeded();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*static*/ bool wxLog::IsAllowedTraceMask(const wxChar *mask)
|
/*static*/ bool wxLog::IsAllowedTraceMask(const wxChar *mask)
|
||||||
|
Reference in New Issue
Block a user