You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] clipboard: cross-sheet cut/paste is broken for tables/cfs
Preface: the handling of `MOVE_RANGES` is broken in multiple plugins.
When calling `adaptRanges`, we don't check that the resulting range
is in the same sheet as the original range.
Fixing that in stable is probably not a good idea. This would mean that
suddenly tables/cfs/merges could appear where they were previously
not, and could break existing sheets.
With the clipboard refactoring, the `MOVE_RANGES` command is now
dispatched at the start of the paste handling (in `CellClipboardHandler`).
At this dispatch, the CFs/Tables/Merges are moved to the wrong sheet.
So in a cut, when the time comes to delete the original Table, the
table is not found at the copy position, and the delete fails.
This commit fixes that by dispatching the `MOVE_RANGES` command at the
very end of the paste handling, after the tables/cfs/merges have been
moved/deleted by their respective handlers.
Note: the cut/paste of filter values does not work anymore. It
somewhat was working before because of the `MOVE_RANGES`, but doesn't
work anymore since `UPDATE_FILTER` is not working before the next
evaluation because of dynamic tables.
closes#5951
Task: 3905618
X-original-commit: 43d5192
Signed-off-by: Vincent Schippefilt (vsc) <[email protected]>
Signed-off-by: Adrien Minne (adrm) <[email protected]>
0 commit comments