summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-02-03 15:19:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-04 11:20:11 +0100
commit04ccd7f247dd6be93e7f44e11333852ae65dbef2 (patch)
tree72153bfac55b5b0b7650398aacc3ce9d4f8b1a5f
parenttdf#120348: Avoid data loss when copying chart with error in formulas (diff)
downloadcore-04ccd7f247dd6be93e7f44e11333852ae65dbef2.tar.gz
core-04ccd7f247dd6be93e7f44e11333852ae65dbef2.zip
tdf#140014 calc crash on COUNTIF
regression from jumbo-sheets work Change-Id: I207cf3cc4c6d295688936ea3b672b32f9c09d89a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110349 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit c4540f86925609a54d473051ceb8dcf46d0e22aa) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110358
-rw-r--r--sc/source/core/data/dociter.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index 44de36f1ab7b..fe01559db1dd 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -1460,6 +1460,8 @@ ScCountIfCellIterator::ScCountIfCellIterator(ScDocument* pDocument, const ScInte
mrContext( rContext ),
nTab( nTable)
{
+ maParam.nCol1 = pDoc->maTabs[nTable]->ClampToAllocatedColumns(maParam.nCol1);
+ maParam.nCol2 = pDoc->maTabs[nTable]->ClampToAllocatedColumns(maParam.nCol2);
nCol = maParam.nCol1;
nRow = maParam.nRow1;
}