diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2023-12-12 08:39:54 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-12-12 09:56:10 +0100 |
commit | 0746d13365139c356eb9d297a358c486bf47d6fb (patch) | |
tree | 51db155ee74b7d5b2dcbc49451a270e424370da1 /bin/distro-install-file-lists | |
parent | 70153b7350fbd0c12a63e879a93a443672061044 (diff) |
sw floattable: fix split of anchor text in 2nd half of the paragraph
If you go to the anchor text of the floating table and you press enter
in the second half of the anchor text, you get a layout loop.
The reason for this: an invariant around split text frames were
violated, later resulting in a layout loop. The rule is that in case you
have a split frame, then there can't be a frame for a new text node
between the two split frames. So no new text frame for an other node
after the master anchor of the fly; no new text frame for an other node
before the follow anchor of the fly.
Fix the problem by improving SwTextNode::SplitContentNode() to check if
this is an anchor for a split fly: if so, always insert the new text
frame after the follow anchor of the fly, which doesn't break the above
invariant.
The layout loop is fixed, but the text in the follow anchor of the fly
still has a bad position, that still needs fixing. Also currently
testSplitFlyMoveMaster enforces that split at the para start inserts a
paragraph before the floating table, so leave that case unchanged for
now.
Change-Id: I77962a354e297d2e9957edcce9bf140f2c72fc6e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160608
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'bin/distro-install-file-lists')
0 files changed, 0 insertions, 0 deletions