[Libreoffice-commits] core.git: Branch 'libreoffice-5-1-3' - sc/source

Eike Rathke erack at redhat.com
Tue May 3 16:51:27 UTC 2016


 sc/source/core/data/column.cxx |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 550e7291ba7decee9478d6586e3098343d810a79
Author: Eike Rathke <erack at redhat.com>
Date:   Mon May 2 16:25:01 2016 +0200

    Resolves: tdf#99417 explicitly track formula cells for BROADCAST_BROADCASTERS
    
    Change-Id: I717fc6d1d7c2bc01ed2a256f6fc08a055be24e4b
    (cherry picked from commit a0b9fa819c9193dee1405cee13690adf00e2d9b9)
    Reviewed-on: https://gerrit.libreoffice.org/24593
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 8e835b9..596e338 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -3169,7 +3169,14 @@ void ScColumn::SetDirty( SCROW nRow1, SCROW nRow2, BroadcastMode eMode )
                 sc::ProcessFormula(maCells.begin(), maCells, nRow1, nRow2, aHdl);
                 // Broadcast all broadcasters in range.
                 ScHint aHint( SC_HINT_DATACHANGED, ScAddress( nCol, nRow1, nTab));
-                BroadcastBroadcasters( nRow1, nRow2, aHint);
+                if (BroadcastBroadcasters( nRow1, nRow2, aHint))
+                {
+                    // SetDirtyOnRangeHandler implicitly tracks notified
+                    // formulas via ScDocument::Broadcast(), which
+                    // BroadcastBroadcastersHandler doesn't, so explicitly
+                    // track them here.
+                    pDocument->TrackFormulas();
+                }
             }
             break;
     }


More information about the Libreoffice-commits mailing list