From 59d96acec8c4d9e472daa3e2c287b3a754e01817 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 7 May 2021 17:42:51 +0200 Subject: tdf#138518 sw: layout: unbreak fdo80206-1.doc The 7 flys on the para on page 3 create ~15 extra pages with one paragraph each. Argh! One of the bPageHasFlysAnchoredBelowThis checks was inverted. How dumb of me. (regression from c799de145f7e289f31e3669646e5bd12814e6c5e) Still doesn't look good but now it looks same as in 7.0. Change-Id: Ib10c46f48746362d8d679c147ddc8b85157be508 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115242 Reviewed-by: Michael Stahl Tested-by: Jenkins --- sw/source/core/layout/objectformattertxtfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source') diff --git a/sw/source/core/layout/objectformattertxtfrm.cxx b/sw/source/core/layout/objectformattertxtfrm.cxx index 4f91ee46226e..630ce1883bed 100644 --- a/sw/source/core/layout/objectformattertxtfrm.cxx +++ b/sw/source/core/layout/objectformattertxtfrm.cxx @@ -411,7 +411,7 @@ bool SwObjectFormatterTextFrame::DoFormatObjs() } if ( bInsert ) { - if (bPageHasFlysAnchoredBelowThis) + if (!bPageHasFlysAnchoredBelowThis) { SwLayouter::InsertMovedFwdFrame(rDoc, mrAnchorTextFrame, pAnchorPageFrame->GetPhyPageNum()); -- cgit v1.2.3