From 801eabf43635fd125038b2de40a1bafe16c70bd9 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 28 Jan 2014 14:56:21 +0100 Subject: added ScBulkBroadcast to ScSimpleUndo::BroadcastChanges() ... to prevent repeated broadcasts to identical range listeners. Change-Id: Iccbcb27fe03a957c9e448683e6bdc85538c25c3a --- sc/source/ui/undo/undobase.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sc') 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) -- cgit