From 42e32bb7a0a015a2726b148425410fa275c808c9 Mon Sep 17 00:00:00 2001 From: Laurent Godard Date: Mon, 1 Jul 2013 11:32:47 +0200 Subject: the calculation of the progressbar leads to very slow saving Change-Id: Ibba31126161b77b499561c5a74c057a56c07a4a8 Reviewed-on: https://gerrit.libreoffice.org/4647 Reviewed-by: Bosdonnat Cedric Tested-by: Bosdonnat Cedric Reviewed-on: https://gerrit.libreoffice.org/4698 Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- sc/source/filter/xml/xmlexprt.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc') diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 9089f2718924..2a543cdfddd8 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -2443,10 +2443,10 @@ void ScXMLExport::_ExportAutoStyles() if (xCellRangesQuery.is()) { Reference xSheetCellRanges(xCellRangesQuery->queryContentCells(sheet::CellFlags::FORMATTED)); - Reference xSheetOperation(xSheetCellRanges, uno::UNO_QUERY); - if (xSheetCellRanges.is() && xSheetOperation.is()) + if (xSheetCellRanges.is()) { - sal_uInt32 nCount(sal_uInt32(xSheetOperation->computeFunction(sheet::GeneralFunction_COUNT))); + uno::Sequence< table::CellRangeAddress > aCellRangeAddresses (xSheetCellRanges->getRangeAddresses()); + sal_uInt32 nCount(aCellRangeAddresses.getLength()); Reference xCellsAccess(xSheetCellRanges->getCells()); if (xCellsAccess.is()) { -- cgit