summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-02-03 15:19:20 +0200
committerThorsten Behrens <thorsten.behrens@allotropia.de>2023-12-10 21:52:45 +0100
commit5a0fb95789651c05774cdc566eeda0d3151a811c (patch)
tree6c7da52fe01784b7d5e279fc65c7964c8a97a67b
parent94b5b16cfa8847e50e30d724aea35764eae5c3c6 (diff)
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>
-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 ed55445d0558..efbd720c249d 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;
}