| commit | 650c3477aa4120cafcb9f0e77b341b1ac70de048 | [log] |
|---|---|---|
| author | Luboš Luňák <l.lunak@collabora.com> | Mon Jun 13 19:51:43 2022 +0200 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Wed Jun 15 06:25:43 2022 +0200 |
| tree | ace27ba6fd0e5d6e37ab412fdad41d75bdc469fb | |
| parent | bba36d106c43513923cce393da05df3c732c5ea0 [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/+/135747 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 3ba4ce9..ab3532b7 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;