[Libreoffice-commits] core.git: sc/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 18 16:26:11 UTC 2019


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

New commits:
commit a606fc64cb18df14f01f2e14e677a1e729025ad7
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Apr 18 16:06:09 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Apr 18 18:24:40 2019 +0200

    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 at collabora.co.uk>

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;


More information about the Libreoffice-commits mailing list