summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/newfrm.cxx
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2020-07-31 13:42:20 +0300
committerJustin Luth <justin_luth@sil.org>2020-08-17 20:53:00 +0200
commit15d3a3864879ff405c3f50003571989088be54c3 (patch)
tree5db3b55eff52934eaa91e0955772074110024a1e /sw/source/core/layout/newfrm.cxx
parentd7484b08c636801b474582c1e940dc8e497b74e8 (diff)
tdf#135338 sw layout: show FirstLeft on very first left page style.
Although extremely unlikely, the Left Page style can have a different Left and FirstLeft. In the even more unlikely case that the document starts off using a left-page-only style, then the first header would not show on the first page, but only on all of the following left-only pages. So, of course, we want the very first visible page in the document to show the defined First header/footer. Change-Id: I7e74fdc085509fb8d6b80f36d1402309b9db9404 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99862 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'sw/source/core/layout/newfrm.cxx')
-rw-r--r--sw/source/core/layout/newfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/newfrm.cxx b/sw/source/core/layout/newfrm.cxx
index 07ba49b7b626..a24a23bc9f30 100644
--- a/sw/source/core/layout/newfrm.cxx
+++ b/sw/source/core/layout/newfrm.cxx
@@ -488,7 +488,7 @@ 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);
+ SwPageFrame *pPage = ::InsertNewPage(*pDesc, this, true, true, false, false, nullptr, true);
// Find the first page in the Bodytext section.
SwLayoutFrame *pLay = pPage->FindBodyCont();