From a128bea5dda1d74426dae62b032d5af52f431fe2 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 13 Feb 2013 16:04:01 +0000 Subject: cancel asynchronous word-count on sync. word-count. --- sw/source/core/doc/doc.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sw') diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index 0470ef3a2551..b9bc7d256fc8 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -1792,7 +1792,10 @@ void SwDoc::UpdateDocStat( bool bCompleteAsync ) if( pDocStat->bModified ) { if (!bCompleteAsync) + { while (IncrementalDocStatCalculate()) {} + aStatsUpdateTimer.Stop(); + } else if (IncrementalDocStatCalculate()) aStatsUpdateTimer.Start(); } -- cgit