diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-18 16:06:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-18 18:24:40 +0200 |
commit | a606fc64cb18df14f01f2e14e677a1e729025ad7 (patch) | |
tree | b514a454e47d835fd840f5cd374625fe4149f71d | |
parent | 0fe112dbd98b82145bbc68efe00c59764684632b (diff) |
tdf#124822 CRASH: cutting and undoing
regression from
commit 7282014e362a1529a36c88eb308df8ed359c2cfa
Date: Fri Feb 1 15:15:16 2019 +0100
tdf#50916 Makes numbers of columns dynamic.
Change-Id: I17312ca978a83a431dfaf6edda2c98e6302eb2d1
Reviewed-on: https://gerrit.libreoffice.org/70938
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sc/source/core/data/table2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 4c303d9d3996..4880e02d45c7 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -1852,6 +1852,7 @@ bool ScTable::BroadcastBroadcasters( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCRO bool bBroadcasted = false; sc::AutoCalcSwitch aSwitch(*pDocument, false); rHint.GetAddress().SetTab(nTab); + nCol2 = ClampToAllocatedColumns(nCol2); for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol) bBroadcasted |= aCol[nCol].BroadcastBroadcasters( nRow1, nRow2, rHint); return bBroadcasted; |