diff options
author | Eike Rathke <erack@redhat.com> | 2016-01-07 12:11:30 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-01-07 15:00:28 +0000 |
commit | 6384fc20aafa649604ae6e4ddb2f7a84b5471f81 (patch) | |
tree | 24eb59d81d7baebe8d4b1254b801781e55844618 /sc/source | |
parent | c173aba39c3e49f4c9b8f85d0c2ce08664a38f0f (diff) |
Resolves: tdf#94208 broadcast fill undo (for deleted cells)
Change-Id: I0fb54956bffc77dad4236b326eee3af836017623
(cherry picked from commit ece5cc21aa7814be79016e0d285981c6ced4d9ee)
Reviewed-on: https://gerrit.libreoffice.org/21206
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/undo/undoblk3.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx index f7e0e2846869..bb90e113378b 100644 --- a/sc/source/ui/undo/undoblk3.cxx +++ b/sc/source/ui/undo/undoblk3.cxx @@ -541,6 +541,12 @@ void ScUndoAutoFill::Undo() rDoc.DeleteAreaTab( aWorkRange, InsertDeleteFlags::AUTOFILL ); pUndoDoc->CopyToDocument( aWorkRange, InsertDeleteFlags::AUTOFILL, false, &rDoc ); + // Actually we'd only need to broadcast the cells inserted during + // CopyToDocument(), as DeleteAreaTab() broadcasts deleted cells. For + // this we'd need to either record the span sets or let + // CopyToDocument() broadcast. + BroadcastChanges( aWorkRange); + rDoc.ExtendMerge( aWorkRange, true ); pDocShell->PostPaint( aWorkRange, PAINT_GRID, nExtFlags ); } |