[Libreoffice-bugs] [Bug 139057] Image to character/paragraph at the end or beginning of a paragraph isn't included in a single line section

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Dec 19 15:06:41 UTC 2020


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

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

Bisected to:
author  Michael Stahl <Michael.Stahl at cib.de>    2020-04-09 18:31:50 +0200
committer       Michael Stahl <michael.stahl at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201219/daa0b481/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list