diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-02-13 16:04:01 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-02-13 16:05:27 +0000 |
commit | a128bea5dda1d74426dae62b032d5af52f431fe2 (patch) | |
tree | 15ed0e11e1e850ab3bc26976a6ba4c41839d12c5 /sw | |
parent | 5df28325e71fef3cb8557bf670959f9adc71421e (diff) |
cancel asynchronous word-count on sync. word-count.
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/doc.cxx | 3 |
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(); } |