diff options
-rw-r--r-- | sc/source/filter/orcus/interface.cxx | 7 |
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()) |