[Libreoffice-commits] core.git: sc/source
Laurent Godard
lgodard.libre at laposte.net
Mon Jul 1 02:47:24 PDT 2013
sc/source/filter/xml/xmlexprt.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 8be462fde98a8f22f182b5b3e63657f7007ed165
Author: Laurent Godard <lgodard.libre at laposte.net>
Date: Mon Jul 1 11:32:47 2013 +0200
the calculation of the progressbar leads to very slow saving
Change-Id: Ibba31126161b77b499561c5a74c057a56c07a4a8
Reviewed-on: https://gerrit.libreoffice.org/4647
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index 0062479..1943238 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -2432,10 +2432,10 @@ void ScXMLExport::_ExportAutoStyles()
if (xCellRangesQuery.is())
{
Reference<sheet::XSheetCellRanges> xSheetCellRanges(xCellRangesQuery->queryContentCells(sheet::CellFlags::FORMATTED));
- Reference<sheet::XSheetOperation> 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<container::XEnumerationAccess> xCellsAccess(xSheetCellRanges->getCells());
if (xCellsAccess.is())
{
More information about the Libreoffice-commits
mailing list