Kaydet (Commit) 50d4e7c9 authored tarafından Eike Rathke's avatar Eike Rathke Kaydeden (comit) Tor Lillqvist

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
(cherry picked from commit 97ad6393)
Reviewed-on: https://gerrit.libreoffice.org/18573Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
üst b12309df
......@@ -2961,10 +2961,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