diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-11-12 08:39:35 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-11-12 12:46:22 +0100 |
commit | 39f231360013e944a8713248359662b9f282d902 (patch) | |
tree | c3be11063a963835c61954f96da6026f0626ed28 /sw/inc/viscrs.hxx | |
parent | e1a9d507d92cc793f7f10f87cdd7a5534faa5759 (diff) |
sw, out of order undo: allow multiple actions from other views
Previously we assumed that the action to be executed is always exactly
the top of the undo stack minus 1 element.
Extend this, so that in case an other view appends two or more elements
to the undo stack, we still find our undo action. Obviously only do this
if all those undo actions are independent from us.
This requires replacing the swap in svl/ with a move-out + move a range
down + move in construct.
Change-Id: Ic12d32d6eb5e77618d99eddb4fa096802f32d655
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125076
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/inc/viscrs.hxx')
0 files changed, 0 insertions, 0 deletions