Steps to reproduce it:
1. Open sw/qa/extras/uiwriter/data3/tdf132725.odt
2. Go to end of paragraph
3. Use backspace twice
-> Image disappears
Regression introduced by https://cgit.freedesktop.org/libreoffice/core/commit/?id=91b2325808a75174f284c48c8b8afc118fad74e4, later on fixed by https://cgit.freedesktop.org/libreoffice/core/commit/?id=be2f539012d818eaa2d40a9cf199b53d32e1dee4 and reintroduced again by
See https://gerrit.libreoffice.org/c/core/+/96386 for more information
Adding Cc: to Michael Stahl
It's not attachment 160388 [details] ?
I don't see by title why this should be a bug, looks reasonable.
(In reply to Timur from comment #2)
> It's not attachment 160388 [details] ?
> I don't see by title why this should be a bug, looks reasonable.
I'm reporting it because it has always worked in a different way. Also see my description explaining that it was introduced, fixed and reintroduced again.
I'm fine if the behaviour changes but I would like to hear Michael's opinion first
be2f539012d818eaa2d40a9cf199b53d32e1dee4 was a regression for this example because it didn't take into account that anchor of at-para fly doesn't have SwIndex.
for my idea of how this should work.
this falls into case 2.
distinguishing between a selection that was created by SelectAll and one that was created by Backspace key and happens to be the entire section because there's only one character doesn't look easy to implement.
*** Bug 135629 has been marked as a duplicate of this bug. ***
fixed on master
notification didn't happen, apparently i need to put all the bugs into subject line:
Author: Michael Stahl <email@example.com>
AuthorDate: Tue Jun 7 19:01:24 2022 +0200
Commit: Michael Stahl <firstname.lastname@example.org>
CommitDate: Tue Jun 21 10:03:07 2022 +0200
tdf#133957 sw: don't delete flys on Backspace/Delete keys
Also fixes: tdf#134007 tdf#138835 tdf#139514