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

Resolves: tdf#121002 UpdateRefOnNonCopy::mbUpdated=true if references change

... somewhere in a previous shared formula group, so for the new groups
after split the column is added to sc::RefUpdateContext::maRegroupCols
in ScColumn::UpdateReference() to setup new listeners later, and true
returned there, which also results in ScTable::SetStreamValid(false) at
the end, which in this constellation wasn't the case.

It may have been a reason that some documents have individual
unrecalculated results stored (i.e. values moved within ranges that a
shared formula group pointed to) that can be corrected by recalculating
after load.

Said to be a regression from

    commit 2f6a0685
    CommitDate: Fri Jun 5 16:22:38 2015 +0200

        tdf#90694 reset group area listeners when splitting group

but that only uncovered this misbehaviour.

Change-Id: I6b04b71898c3f1774452dd19790c208f3167d8eb
Reviewed-on: https://gerrit.libreoffice.org/67461Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: Jenkins
üst 77508eee
...@@ -2271,6 +2271,8 @@ class UpdateRefOnNonCopy ...@@ -2271,6 +2271,8 @@ class UpdateRefOnNonCopy
p->SetDirty(); p->SetDirty();
} }
mbUpdated = true;
// Move from clipboard is Cut&Paste, then do not copy the original // Move from clipboard is Cut&Paste, then do not copy the original
// positions' formula cells to the Undo document. // positions' formula cells to the Undo document.
if (!mbClipboardSource || !bCellMoved) if (!mbClipboardSource || !bCellMoved)
......
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