summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-08-14 12:27:29 +0200
committerPetr Mladek <pmladek@suse.cz>2013-08-16 14:56:13 +0000
commita8d35a87d65e6be12bcd3fc410ba32b2fb9ecd65 (patch)
treee94a47700ca939b512d11e6755c6fc8198544394 /sw
parentb697e302c1eb31afdcc3bbc916bd929ec96a6c70 (diff)
sw: do non-incremental word count in one step
Not sure if it solves a real problem, but seems sensible. Change-Id: I3a75da924aaffb452da158a6e5c0b3465fe5687b (cherry picked from commit 3f66fadc2ddbec42a5fd7ee34b18826ef4ede503) Reviewed-on: https://gerrit.libreoffice.org/5410 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/doc.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index 1993018a172f..8cf4f11aae04 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -1758,7 +1758,8 @@ void SwDoc::UpdateDocStat( bool bCompleteAsync, bool bFields )
{
if (!bCompleteAsync)
{
- while (IncrementalDocStatCalculate(5000, bFields)) {}
+ while (IncrementalDocStatCalculate(
+ ::std::numeric_limits<long>::max(), bFields)) {}
maStatsUpdateTimer.Stop();
}
else if (IncrementalDocStatCalculate(5000, bFields))