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

New commits:
commit ef1be22efb3e1625da1683ea98392cc41657b1cd
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Mon Jun 13 19:51:43 2022 +0200
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Tue Jun 14 10:58:14 2022 +0200

    allocate columns in ScTable::TransposeClip() (tdf#149554)
    
    Change-Id: I2ae151ed9656884bca6963ba09bdf236e09096b7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135774
    Tested-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Reviewed-by: Luboš Luňák <l.lu...@collabora.com>

diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 5a684edfcf9e..f213fea6c6ea 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;
 

Reply via email to