summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-11 17:01:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 08:03:16 +0200
commit8ff99af537b2daff07717990be10780ad6824f25 (patch)
tree178a530876649cbccc3bb6aa0701c5038280318d /sc
parent65e293f524437a548b6c099bbe6099b56957063c (diff)
use more GetColumnsRange
Change-Id: If6995480d6196378279b757bfa717c772f0be448 Reviewed-on: https://gerrit.libreoffice.org/42174 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/documen4.cxx2
1 files changed, 1 insertions, 1 deletions
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)
{