[Libreoffice-commits] core.git: sc/source

Noel Grandin noel.grandin at collabora.co.uk
Tue Sep 12 06:03:40 UTC 2017


 sc/source/core/data/documen4.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8ff99af537b2daff07717990be10780ad6824f25
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Mon Sep 11 17:01:43 2017 +0200

    use more GetColumnsRange
    
    Change-Id: If6995480d6196378279b757bfa717c772f0be448
    Reviewed-on: https://gerrit.libreoffice.org/42174
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx
index b4c448133f6e..ae608b3c2e94 100644
--- a/sc/source/core/data/documen4.cxx
+++ b/sc/source/core/data/documen4.cxx
@@ -326,7 +326,7 @@ void ScDocument::InsertMatrixFormula(SCCOL nCol1, SCROW nRow1,
             *t->GetSingleRef() = aRefData;
         }
 
-        for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol)
+        for (SCCOL nCol : GetColumnsRange(nTab1, nCol1, nCol2))
         {
             for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow)
             {


More information about the Libreoffice-commits mailing list