summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-04-11 12:24:41 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-04-13 01:54:39 -0400
commit7b764697d519b9dc2295c43879b6c2b89168fd9e (patch)
tree0bff1bddc565270d70f24c1daa12e14d06e6209c
parent7745d29ce1e500c42331852cdba284e0509af98a (diff)
Increment progress also during post string cell insertion phase.
Change-Id: Ie8dad05f8629f8acea735c6ff71851d22b997a37
-rw-r--r--sc/source/filter/orcus/interface.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
index 53f9321bfcf4..99ea336ea225 100644
--- a/sc/source/filter/orcus/interface.cxx
+++ b/sc/source/filter/orcus/interface.cxx
@@ -109,6 +109,7 @@ void ScOrcusFactory::finalize()
{
ScSetStringParam aParam;
aParam.setTextInput();
+ int nCellCount = 0;
StringCellCaches::const_iterator it = maStringCells.begin(), itEnd = maStringCells.end();
for (; it != itEnd; ++it)
{
@@ -117,6 +118,12 @@ void ScOrcusFactory::finalize()
continue;
mrDoc.SetString(it->maPos, maStrings[it->mnIndex], &aParam);
+ ++nCellCount;
+ if (nCellCount == 100000)
+ {
+ incrementProgress();
+ nCellCount = 0;
+ }
}
if (mxStatusIndicator.is())