tdf#139982 sw: preserve flys in Replace with redlining enabled
commitf85a5b4d5cafc80e01e2891cb1427ee94abe1d41
authorMichael Stahl <michael.stahl@allotropia.de>
Fri, 10 Jun 2022 14:26:40 +0000 (10 16:26 +0200)
committerMichael Stahl <michael.stahl@allotropia.de>
Tue, 23 Aug 2022 16:14:49 +0000 (23 18:14 +0200)
tree90955e6c63a005cccf307ae37baebcea4a3fbbc5
parent986fffa7f3d3eb4a49179230b7e39626f74771a4
tdf#139982 sw: preserve flys in Replace with redlining enabled

The problem is that there isn't a redline type "Replace" so it's
represented as Delete+Insert.

To prevent the flys anchored in the text from being deleted, move the
anchors to the point between the old (deleted) and new (inserted) text.

(regression from commit 28b77c89dfcafae82cf2a6d85731b643ff9290e5)

Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135604
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
(cherry picked from commit 646c6ddd91a98afddf914e3889cb269fc814c060)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135737
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
(cherry picked from commit b7ab83bd96c70932c2223c8d0b3bc0f24327cef2)

Change-Id: Ib600c9dbfb9421917e4b8d61195c48cf0b364f06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136220
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
sw/qa/extras/uiwriter/uiwriter2.cxx
sw/source/core/doc/DocumentContentOperationsManager.cxx
sw/source/core/doc/docedt.cxx
sw/source/core/inc/mvsave.hxx