From 55220e7bc6576a7575c675ba425e757a3aefa243 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Thu, 2 Apr 2020 11:14:59 +0200 Subject: use mdds position hint (tdf#131716) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise this is the usual case of possible quadratic mdds slowness. Change-Id: I5b33df65e127702c011517d79b9cd41a7e820ca0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91553 Tested-by: Jenkins Reviewed-by: Luboš Luňák --- sc/source/ui/unoobj/chart2uno.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 03787f78009b..47e39f038c68 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -42,6 +42,7 @@ #include #include #include +#include #include #include @@ -2454,6 +2455,8 @@ void ScChart2DataSequence::BuildDataCache() { for (SCCOL nCol = aRange.aStart.Col(); nCol <= aRange.aEnd.Col(); ++nCol) { + sc::ColumnBlockPosition hint; + m_pDocument->InitColumnBlockPosition( hint, nTab, nCol ); for (SCROW nRow = aRange.aStart.Row(); nRow <= aRange.aEnd.Row(); ++nRow) { bool bColHidden = m_pDocument->ColHidden(nCol, nTab, nullptr, &nLastCol); @@ -2473,7 +2476,7 @@ void ScChart2DataSequence::BuildDataCache() ScAddress aAdr(nCol, nRow, nTab); aItem.maString = m_pDocument->GetString(aAdr); - ScRefCellValue aCell(*m_pDocument, aAdr); + ScRefCellValue aCell(*m_pDocument, aAdr, hint); switch (aCell.meType) { case CELLTYPE_VALUE: -- cgit