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.