sc/source/filter/orcus/interface.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit d247c5dc7adb5838c90258bf9463762dc0501e66 Author: Kohei Yoshida <kohei.yosh...@gmail.com> Date: Thu Apr 11 12:24:41 2013 -0400 Increment progress also during post string cell insertion phase. Change-Id: Ie8dad05f8629f8acea735c6ff71851d22b997a37 diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx index 53f9321..99ea336 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()) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits