diff options
author | Eike Rathke <erack@redhat.com> | 2014-01-28 14:56:21 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-01-28 14:58:56 +0100 |
commit | 801eabf43635fd125038b2de40a1bafe16c70bd9 (patch) | |
tree | 0c48c6a27e7824e945406c38ad5b0f43affdda2b /sc | |
parent | 3dda94c22f83aa7133f5439d356f505c1831ec84 (diff) |
added ScBulkBroadcast to ScSimpleUndo::BroadcastChanges()
... to prevent repeated broadcasts to identical range listeners.
Change-Id: Iccbcb27fe03a957c9e448683e6bdc85538c25c3a
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/undo/undobase.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx index 178ec573bb7d..2f4398789235 100644 --- a/sc/source/ui/undo/undobase.cxx +++ b/sc/source/ui/undo/undobase.cxx @@ -29,6 +29,7 @@ #include "attrib.hxx" #include "queryparam.hxx" #include "subtotalparam.hxx" +#include "bcaslot.hxx" #include "globstr.hrc" // STATIC DATA ----------------------------------------------------------- @@ -147,6 +148,8 @@ void ScSimpleUndo::BroadcastChanges( const ScRange& rRange ) ScDocument* pDoc = pDocShell->GetDocument(); pDoc->CellContentModified(); + ScBulkBroadcast aBulkBroadcast( pDoc->GetBASM()); + ScHint aHint(SC_HINT_DATACHANGED, ScAddress()); ScAddress& rPos = aHint.GetAddress(); for (SCTAB nTab = rRange.aStart.Tab(); nTab <= rRange.aEnd.Tab(); ++nTab) |