Kaydet (Commit) 8be462fd authored tarafından Laurent Godard's avatar Laurent Godard Kaydeden (comit) Bosdonnat Cedric

the calculation of the progressbar leads to very slow saving

Change-Id: Ibba31126161b77b499561c5a74c057a56c07a4a8
Reviewed-on: https://gerrit.libreoffice.org/4647Reviewed-by: 's avatarBosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: 's avatarBosdonnat Cedric <cedric.bosdonnat@free.fr>
üst d892671c
......@@ -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())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment