summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo/undobase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/undo/undobase.cxx')
-rw-r--r--sc/source/ui/undo/undobase.cxx20
1 files changed, 1 insertions, 19 deletions
diff --git a/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx
index 178ec573bb7d..77f83456e684 100644
--- a/sc/source/ui/undo/undobase.cxx
+++ b/sc/source/ui/undo/undobase.cxx
@@ -145,25 +145,7 @@ void ScSimpleUndo::EndRedo()
void ScSimpleUndo::BroadcastChanges( const ScRange& rRange )
{
ScDocument* pDoc = pDocShell->GetDocument();
- pDoc->CellContentModified();
-
- ScHint aHint(SC_HINT_DATACHANGED, ScAddress());
- ScAddress& rPos = aHint.GetAddress();
- for (SCTAB nTab = rRange.aStart.Tab(); nTab <= rRange.aEnd.Tab(); ++nTab)
- {
- rPos.SetTab(nTab);
- for (SCCOL nCol = rRange.aStart.Col(); nCol <= rRange.aEnd.Col(); ++nCol)
- {
- rPos.SetCol(nCol);
- for (SCROW nRow = rRange.aStart.Row(); nRow <= rRange.aEnd.Row(); ++nRow)
- {
- rPos.SetRow(nRow);
- pDoc->Broadcast(aHint);
- }
- }
- }
-
- pDoc->BroadcastUno(SfxSimpleHint(SC_HINT_DATACHANGED));
+ pDoc->BroadcastCells(rRange, SC_HINT_DATACHANGED);
}
void ScSimpleUndo::ShowTable( SCTAB nTab )