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:01:57 +0000 |
commit | 81dad223dbfac9352bbfd9333d1ba101d245a15a (patch) | |
tree | 9092cd5fced15252ea8c512b8e45c1a952e0aa1f | |
parent | 9a22f9f5fe528c7c0f45813a025b377f79c8372e (diff) |
Resolves: tdf#94208 broadcast fill undo (for deleted cells)
Change-Id: I0fb54956bffc77dad4236b326eee3af836017623
(cherry picked from commit ece5cc21aa7814be79016e0d285981c6ced4d9ee)
Reviewed-on: https://gerrit.libreoffice.org/21207
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-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 764d7170f624..b28f0bb37ac6 100644 --- a/sc/source/ui/undo/undoblk3.cxx +++ b/sc/source/ui/undo/undoblk3.cxx @@ -550,6 +550,12 @@ void ScUndoAutoFill::Undo() rDoc.DeleteAreaTab( aWorkRange, IDF_AUTOFILL ); pUndoDoc->CopyToDocument( aWorkRange, IDF_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 ); } |