[Libreoffice-commits] core.git: sc/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 24 06:44:59 UTC 2020
sc/source/core/data/table2.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 240758a972eb99dd4d26fa6040ff0b6614036621
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Jun 23 16:46:22 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Jun 24 08:44:19 2020 +0200
tdf#133326 Crash after redo
regression from
commit 7282014e362a1529a36c88eb308df8ed359c2cfa
tdf#50916 Makes numbers of columns dynamic.
Change-Id: I6a3d6b35dbd442014c84785d97cbd7eae19244cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96958
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 8c52bd5a1a74..9779964d10e0 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -1347,10 +1347,11 @@ void ScTable::UndoToTable(
for ( SCCOL i = 0; i < aCol.size(); i++)
{
+ auto& rDestCol = pDestTab->CreateColumnIfNotExists(i);
if ( i >= nCol1 && i <= nCol2 )
- aCol[i].UndoToColumn(rCxt, nRow1, nRow2, nFlags, bMarked, pDestTab->aCol[i]);
+ aCol[i].UndoToColumn(rCxt, nRow1, nRow2, nFlags, bMarked, rDestCol);
else
- aCol[i].CopyToColumn(rCxt, 0, pDocument->MaxRow(), InsertDeleteFlags::FORMULA, false, pDestTab->aCol[i]);
+ aCol[i].CopyToColumn(rCxt, 0, pDocument->MaxRow(), InsertDeleteFlags::FORMULA, false, rDestCol);
}
if (nFlags & InsertDeleteFlags::ATTRIB)
More information about the Libreoffice-commits
mailing list