summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/doc/DocumentStatisticsManager.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/doc/DocumentStatisticsManager.cxx b/sw/source/core/doc/DocumentStatisticsManager.cxx
index 6f1d094e8a1f..989d548284b1 100644
--- a/sw/source/core/doc/DocumentStatisticsManager.cxx
+++ b/sw/source/core/doc/DocumentStatisticsManager.cxx
@@ -119,6 +119,8 @@ void DocumentStatisticsManager::UpdateDocStat( bool bCompleteAsync, bool bFields
}
else if (IncrementalDocStatCalculate(5000, bFields))
maStatsUpdateTimer.Start();
+ else
+ maStatsUpdateTimer.Stop();
}
}
@@ -219,7 +221,7 @@ bool DocumentStatisticsManager::IncrementalDocStatCalculate(long nChars, bool bF
pType->UpdateFlds();
}
- return nChars <= 0;
+ return nChars < 0;
}
IMPL_LINK( DocumentStatisticsManager, DoIdleStatsUpdate, Timer *, pTimer )