summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/table2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index e42a6e69de4a..32c1e34bbff4 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -990,7 +990,7 @@ void ScTable::TransposeClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
{
bool bWasCut = rDocument.IsCutMode();
- for (SCCOL nCol=nCol1; nCol<=nCol2; nCol++)
+ for (SCCOL nCol : GetWritableColumnsRange(nCol1, nCol2))
{
std::vector<SCROW> aFilteredRows;