path: root/sw/qa
diff options
authorJustin Luth <>2020-07-31 13:42:20 +0300
committerJustin Luth <>2020-08-17 20:53:00 +0200
commit15d3a3864879ff405c3f50003571989088be54c3 (patch)
tree5db3b55eff52934eaa91e0955772074110024a1e /sw/qa
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: Tested-by: Jenkins Reviewed-by: Justin Luth <>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/odfexport/data/tdf135338_firstLeftPageFooter.odtbin0 -> 10687 bytes
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/tdf135338_firstLeftPageFooter.odt b/sw/qa/extras/odfexport/data/tdf135338_firstLeftPageFooter.odt
new file mode 100644
index 000000000000..4f9808875812
--- /dev/null
+++ b/sw/qa/extras/odfexport/data/tdf135338_firstLeftPageFooter.odt
Binary files differ
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index f74980ebc51b..e28ae2515f0b 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -1666,6 +1666,13 @@ DECLARE_ODFEXPORT_TEST(testTdf118393, "tdf118393.odt")
CPPUNIT_ASSERT_EQUAL(OUString("Seite * von *"), parseDump("/root/page[7]/footer/txt/text()"));
+DECLARE_ODFEXPORT_TEST(testTdf135338_firstLeftPageFooter, "tdf135338_firstLeftPageFooter.odt")
+ // The first page is a left page only style, but it should still show the first page footer
+ // instead of the left footer text "EVEN/LEFT (Left page only)"
+ CPPUNIT_ASSERT_EQUAL(OUString("First (Left page only)"), parseDump("/root/page[2]/footer/txt/text()"));
DECLARE_ODFEXPORT_TEST(testGerrit13858, "gerrit13858.odt")