Kaydet (Commit) 97ad6393 authored tarafından Eike Rathke's avatar Eike Rathke

Resolves: tdf#93895 broadcast cell changes when multi-selection was pasted

It is not sufficient to collect the cells, one has to broadcast on the
collection.

Change-Id: I11f889936aff43f958c56789e539809289819752
üst 22b80ac8
......@@ -2960,10 +2960,18 @@ void ScDocument::CopyMultiRangeFromClip(
// Create Listener after everything has been inserted
StartListeningFromClip(aDestRange.aStart.Col(), aDestRange.aStart.Row(),
aDestRange.aEnd.Col(), aDestRange.aEnd.Row(), rMark, nInsFlag );
// Re-broadcast after all Listener have been created
SetDirtyFromClip(
aDestRange.aStart.Col(), aDestRange.aStart.Row(), aDestRange.aEnd.Col(), aDestRange.aEnd.Row(),
rMark, nInsFlag, aBroadcastSpans);
{
ScBulkBroadcast aBulkBroadcast( GetBASM());
// Set formula cells dirty and collect non-formula cells.
SetDirtyFromClip(
aDestRange.aStart.Col(), aDestRange.aStart.Row(), aDestRange.aEnd.Col(), aDestRange.aEnd.Row(),
rMark, nInsFlag, aBroadcastSpans);
BroadcastAction aAction(*this);
aBroadcastSpans.executeColumnAction(*this, aAction);
}
if (bResetCut)
pClipDoc->GetClipParam().mbCutMode = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment