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

--- Comment #1 from Telesto <[email protected]> ---
Bisected to
/win64-24.2 ((54782b933...)|BISECTING)
$ git bisect good
40b4acacb8ac7aefd246c9cdeea4627a7aad91ed is the first bad commit
commit 40b4acacb8ac7aefd246c9cdeea4627a7aad91ed
Author: Norbert Thiebaud <[email protected]>
Date:   Wed Oct 4 03:54:54 2023 -0700

    source sha:89a75cd194371002247d0138e759835bc673f7b0

    source sha:89a75cd194371002247d0138e759835bc673f7b0

-----
sw floattable, crashtesting: fix PDF export of ooo91654-1.doc

Regression from 89a75cd194371002247d0138e759835bc673f7b0 (tdf#126449 sw
floattable: DOC import: handle inner floating table, 2023-10-04), the
document crashed Writer layout when exporting to PDF, which triggers a
layout calculation.

The trouble seems to be that in case the split fly is anchored in a
table which is in a section, then we assume that we can create a section
on the next page and move the follow fly frame there, which will mean
the follow anchor won't be in a table anymore.

Fix this by not moving the follow anchor explicitly, similar to what the
nested floating table (inline or floating outer table) code does. The
layout will later figure out that the available space is not enough,
split the outer table for us, which will lead to a correct result.

Note that the original bugdoc is DOC, but just saving it as-is in Word
hides the problem, so it's not easy to minimize the reproducer. Instead
create a similar DOCX reproducer from scratch.

Change-Id: I769615af467ccaa88057ab322da2865f11d3d2ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157803
Reviewed-by: Miklos Vajna <[email protected]>
Tested-by: Jenkins

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to