From ec1cc2edad7f7a4aa8a2b20f1f0bdc0aa0bc200b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 2 Jan 2008 21:27:31 +0000 Subject: [PATCH] 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 --- src/common/log.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/log.cpp b/src/common/log.cpp index 0e04669ca8..22a549cc5d 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -320,7 +320,6 @@ unsigned wxLog::LogLastRepeatIfNeededUnlocked() wxLog::~wxLog() { - LogLastRepeatIfNeeded(); } /* static */ @@ -502,7 +501,7 @@ void wxLog::DoLogString(const wxChar *WXUNUSED(szString), time_t WXUNUSED(t)) void wxLog::Flush() { - // nothing to do here + LogLastRepeatIfNeeded(); } /*static*/ bool wxLog::IsAllowedTraceMask(const wxChar *mask)