diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-29 11:42:27 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-29 15:46:05 -0500 |
commit | 8a36879eaf0977448b113c2239014d2e2b7ab258 (patch) | |
tree | b74c0651240d114164b8af68821272aef0c885e9 /sc/source/ui/undo/undobase.cxx | |
parent | 76599f3ca36810379a2dda7826aa3cd0f4441cfb (diff) |
fdo#74014: More on broadcasting at appropriate places.
Also, call PostDataChanged() to re-paint re-calculated formula cells.
Change-Id: I63161329d4bfe937f754773fd68c37e3836c4950
Diffstat (limited to 'sc/source/ui/undo/undobase.cxx')
-rw-r--r-- | sc/source/ui/undo/undobase.cxx | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx index fdb2cfc5d478..16cabf6fc2c1 100644 --- a/sc/source/ui/undo/undobase.cxx +++ b/sc/source/ui/undo/undobase.cxx @@ -146,27 +146,7 @@ void ScSimpleUndo::EndRedo() 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) - { - 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 ) |