summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-06-13 19:51:43 +0200
committerLuboš Luňák <l.lunak@collabora.com>2022-06-17 14:29:59 +0200
commit232a982d0f0d9cee356bd4491c717463d718986d (patch)
treeac48c195438ef1b2af7fb3032a83fe993958fe19
parentffe7e9bb1f099b1d517ab6a082793fa58330eccd (diff)
allocate columns in ScTable::TransposeClip() (tdf#149554)
Change-Id: I2ae151ed9656884bca6963ba09bdf236e09096b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135774 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Luboš Luňák <l.lunak@collabora.com> (cherry picked from commit ef1be22efb3e1625da1683ea98392cc41657b1cd) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135748 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
-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;