sw: fix pasting multiple flys in SwFEShell::Paste()
commit5fcee251c35002ae1362f018a381a8bbd3059578
authorMichael Stahl <michael.stahl@allotropia.de>
Fri, 3 Jun 2022 15:56:02 +0000 (3 17:56 +0200)
committerCaolán McNamara <caolanm@redhat.com>
Thu, 9 Jun 2022 07:49:48 +0000 (9 09:49 +0200)
tree3fe29e1d41cb613fa81c8a25e4af452781798f14
parent605298a6e06ccb02b206f90fb9d0b8f831349fd8
sw: fix pasting multiple flys in SwFEShell::Paste()

This was most recently fixed in 3cfd63cb55ab1a7e6df53eaeb2a7623be05983d0
but that didn't take into account that now with Ctrl+A multiple flys can
be selected and copied, and all of them should be pasted; remove the odd
restriction to paste only one text frame.

This reveals that pasting a text frame will actually select the text
frame, so subsequent flys end up anchored inside the text frame; delay
selection until all flys have been pasted.

Change-Id: I049f60ca9656e5075d481d4501bb1ffdd28a4e21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135366
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
(cherry picked from commit badad69848f10b462a11f5b5e784cb468a94b180)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135390
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
sw/source/core/frmedt/fecopy.cxx