[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - sc/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 3 20:56:54 UTC 2021


 sc/source/core/data/dociter.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 7f921fb690005a21bbc1c2e24d5142a0eae9af50
Author:     Noel Grandin <noel at peralex.com>
AuthorDate: Wed Feb 3 15:19:20 2021 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Feb 3 21:56:02 2021 +0100

    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 at collabora.co.uk>
    (cherry picked from commit c4540f86925609a54d473051ceb8dcf46d0e22aa)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110357
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index 9597fcedbbfd..50ab34540265 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -1460,6 +1460,8 @@ ScCountIfCellIterator::ScCountIfCellIterator(ScDocument& rDocument, const ScInte
     mrContext( rContext ),
     nTab( nTable)
 {
+    maParam.nCol1 = rDoc.maTabs[nTable]->ClampToAllocatedColumns(maParam.nCol1);
+    maParam.nCol2 = rDoc.maTabs[nTable]->ClampToAllocatedColumns(maParam.nCol2);
     nCol = maParam.nCol1;
     nRow = maParam.nRow1;
 }


More information about the Libreoffice-commits mailing list