summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-02-13 16:04:01 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-02-13 16:05:27 +0000
commita128bea5dda1d74426dae62b032d5af52f431fe2 (patch)
tree15ed0e11e1e850ab3bc26976a6ba4c41839d12c5 /sw
parentUpdated core (diff)
downloadcore-a128bea5dda1d74426dae62b032d5af52f431fe2.tar.gz
core-a128bea5dda1d74426dae62b032d5af52f431fe2.zip
cancel asynchronous word-count on sync. word-count.
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/doc.cxx3
1 files changed, 3 insertions, 0 deletions
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();
}