tdf#160526, tdf#160549: fix split conditions at page start
commitae9e8f3f6d10b0be2fe5b9b238a531b17e0d67da
authorMike Kaganski <mike.kaganski@collabora.com>
Sun, 7 Apr 2024 13:23:52 +0000 (7 18:23 +0500)
committerMike Kaganski <mike.kaganski@collabora.com>
Sun, 7 Apr 2024 16:46:59 +0000 (7 18:46 +0200)
treeeb01c0f28a44d4707b178bbbfdd64aca0846a5be
parentea3b972f0b590ec069dc56d4d6ac9a6e47cb89a4
tdf#160526, tdf#160549: fix split conditions at page start

A single large object in a paragraph must be moved down, when the page
has other content before this. On the other hand, there must not be
moving down, when an unsuccessful attempt to move was already done (so
the master frame is empty), or even the first time, when the frame is
at the page body start.

Change-Id: Ib8e2fe7b77c622d9cfac22722ca6b55dba7ad8ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165869
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
sw/qa/extras/layout/data/tdf160526.fodt [new file with mode: 0644]
sw/qa/extras/layout/data/tdf160549.fodt [new file with mode: 0644]
sw/qa/extras/layout/layout3.cxx
sw/source/core/text/frmform.cxx