[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Thu Jan 7 03:14:57 PST 2016
sc/source/ui/undo/undoblk3.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit ece5cc21aa7814be79016e0d285981c6ced4d9ee
Author: Eike Rathke <erack at redhat.com>
Date: Thu Jan 7 12:11:30 2016 +0100
Resolves: tdf#94208 broadcast fill undo (for deleted cells)
Change-Id: I0fb54956bffc77dad4236b326eee3af836017623
diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx
index 1888f09..66c3e17 100644
--- a/sc/source/ui/undo/undoblk3.cxx
+++ b/sc/source/ui/undo/undoblk3.cxx
@@ -540,6 +540,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 );
}
More information about the Libreoffice-commits
mailing list