sw/source/core/layout/newfrm.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 73dc3bdf58d80bf22477cdf95bf46d6acbc20f80 Author: Miklos Vajna <[email protected]> AuthorDate: Fri Dec 18 10:18:49 2020 +0100 Commit: Miklos Vajna <[email protected]> CommitDate: Fri Dec 18 11:26:28 2020 +0100 sw: document how the first page frame is created I can't remember if the boolean order is left/right and then first/nonfirst or the other way around. Change-Id: Id39d81f8501da690ce179546e9aa3d4b54f39fcf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107937 Reviewed-by: Miklos Vajna <[email protected]> Tested-by: Jenkins diff --git a/sw/source/core/layout/newfrm.cxx b/sw/source/core/layout/newfrm.cxx index 36d80df0e3c9..4b40f4d6ded6 100644 --- a/sw/source/core/layout/newfrm.cxx +++ b/sw/source/core/layout/newfrm.cxx @@ -491,7 +491,9 @@ void SwRootFrame::Init( SwFrameFormat* pFormat ) // Create a page and put it in the layout // The first page is always a right-page and always a first-page - SwPageFrame *pPage = ::InsertNewPage(*pDesc, this, true, true, false, false, nullptr, true); + SwPageFrame* pPage = ::InsertNewPage( + *pDesc, /*pUpper=*/this, /*isRightPage=*/true, /*bFirst=*/true, /*bInsertEmpty=*/false, + /*bFootnote=*/false, /*pSibling=*/nullptr, /*bVeryFirstPage=*/true); // Find the first page in the Bodytext section. SwLayoutFrame *pLay = pPage->FindBodyCont(); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
