summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2016-07-04 18:27:52 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-07-08 15:42:15 +0200
commit94549e39f235bad508bcc4545eaf88260b6f7884 (patch)
tree929db4b01c90e2ce3e802cd42d7bd4ae70160f61 /sw/qa
parent294194bb47ee287aa469829daed27c56083362e2 (diff)
tdf#95367 inherit page style if no new one imported
CopyLastHeaderFooter doesn't do much good if the previous section has blank stylenames. (usually because of continuous section breaks). Change-Id: Ida1e42ab0b650c7c43f06539b3cc058fe5c27919 Reviewed-on: https://gerrit.libreoffice.org/26911 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 1127bed4d943036473dbbda6bcfae1ec0a23ed2e)
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlimport/data/tdf95367_inheritFollowStyle.docxbin0 -> 13861 bytes
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx5
2 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/tdf95367_inheritFollowStyle.docx b/sw/qa/extras/ooxmlimport/data/tdf95367_inheritFollowStyle.docx
new file mode 100644
index 000000000000..96d91ddcafcd
--- /dev/null
+++ b/sw/qa/extras/ooxmlimport/data/tdf95367_inheritFollowStyle.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index b59caa020217..fe925f8e1000 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -452,6 +452,11 @@ xray para2.PageStyleName
}
+DECLARE_OOXMLIMPORT_TEST(testTdf95367_inheritFollowStyle, "tdf95367_inheritFollowStyle.docx")
+{
+ CPPUNIT_ASSERT_EQUAL(OUString("header"), parseDump("/root/page[2]/header/txt/text()"));
+}
+
DECLARE_OOXMLIMPORT_TEST(testN652364, "n652364.docx")
{
/*