summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/shape.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2025-03-20 09:08:43 +0100
committerMiklos Vajna <vmiklos@collabora.com>2025-03-20 15:17:09 +0100
commit1df71464588d4cfcba708cf00ef7b6ac94574c8f (patch)
tree42db886ad09e759e6f7e588ade9fb340fc8cc748 /oox/source/drawingml/shape.cxx
parentd9bbf0809b3b4722cae9c934ce55cd6189fb67bf (diff)
cool#11357 sw redline reinstate: handle inserts in selection
In case the cursor is inside an insert redline, then .uno:ReinstateTrackedChange works for that change, but if multiple inserts are selected, then this simply results in a reject with no history. This happens because SwView::Execute() has a bool for the accept, so if we have accept/reject/reinstate slots, then by default reinstate is handled as a reject (this is not terrible, reinstate is meant to be "reject with history"). Fix the problem by adding a new SwEditShell::ReinstateRedlinesInSelection() which can decide what redlines are in the selection and then by invoking reinstate on these redlines. Similar to accept/reject, it works to only partially select a redline, which results in a split: the non-selected part is left unchanged and we invoke the action on the selected part. Change-Id: I21a5896f9bd983d8ca8e2480826421c6bffbe556 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183170 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'oox/source/drawingml/shape.cxx')
0 files changed, 0 insertions, 0 deletions