https://bugs.documentfoundation.org/show_bug.cgi?id=139057

--- Comment #4 from Telesto <tele...@surfxs.nl> ---
Created attachment 168328
  --> https://bugs.documentfoundation.org/attachment.cgi?id=168328&action=edit
Bibisect log

Bisected to:
author  Michael Stahl <michael.st...@cib.de>    2020-04-09 18:31:50 +0200
committer       Michael Stahl <michael.st...@cib.de>    2020-04-14 16:59:00
+0200
commit  971205dc2110c1c23ff1db1fc4041e2babf6fa9f (patch)
tree    206e18ddc8ee58be806c59ed4e78724550647498
parent  11785217594d863efb518aa8b8f2910cdcb9c59d (diff)
sw: fix fly at-char deletion API behaviour change
28b77c89dfcafae82cf2a6d85731b643ff9290e5 changed at-char anchored fly
selection.

WollMux calls setString("") to remove one character in the first
paragraph and a fly anchored at the start of the body text is deleted
due to the new IsAtStartOfSection() check.

It would be possible to treat deletion via API differently than via UI,
as there is already a flag ExcludeFlyAtStartEnd but it would require
passing the flag through 10 functions and also to store it in
SwUndoDelete...

The main intent of the IsAtStartOfSection() check was that Ctrl+A should
delete every fly; this can be achieved by checking that everything was
selected, so that selections only inside the first/last paragraph don't
delete the flys at the edges.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=971205dc2110c1c23ff1db1fc4041e2babf6fa9f

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to