office-gobmx/sw/source
Miklos Vajna 607fcac441 tdf#160067 sw floattable: fix missing move bwd of paras in split section frame
The last (5th) paragraph in the index was on page 2, even if page 1
still had space for it.

This is a regression from commit
397d72e582 (Related: tdf#158986 sw
floattable: fix unexpected page break with sections, 2024-02-23), in
case SwLayAction::FormatLayout() doesn't calc its lower content frames
then this bugdoc is good, but the old bugdoc moves its floating table to
the next page, which would be bad.

Fix the problem by making the condition for this "calc lower in
FormatLayout()" action more strict: only do this for content frames
which are in sections, followed by sections.

Note that probably a cleaner way would be to completely stop calculating
content frames in SwLayAction::FormatLayout() and only do that in
FormatContent(), but then it's not clear how to re-fix tdf#158986, and
at least this resolves the regression.

Change-Id: Id671b3b68d8af8ad1cca3399a9aa028de58df3a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165878
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-04-08 08:05:33 +02:00
..
core tdf#160067 sw floattable: fix missing move bwd of paras in split section frame 2024-04-08 08:05:33 +02:00
filter tdf#160301 import DOCVARIABLE fields as user fields 2024-04-04 19:47:54 +02:00
ui improve usability of variable fields 2024-04-04 17:24:54 +02:00
uibase tdf#95405 Sidebar: Quick Find for writer 2024-04-04 20:46:29 +02:00