summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfimport
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2016-06-11 21:58:11 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-06-27 11:54:37 +0000
commit121109610f9af0b294cf042c6ae5abc6fcc4f326 (patch)
tree0f28d94ef7897f1ce84cd340732448c0cb8da32a /sw/qa/extras/odfimport
parentf3f89f4f3180b0fd63c5290c665894c6a27f2ae2 (diff)
tdf#76322 writer: allow column breaks in headers/footers
The code blocking this came in the original OpenOffice flowfrm. Either IsInSct() or FindFooterOrHeader() works to resolve this bug. I chose FindFooterOrHeader because it seemed to match the existing targets (docbody, flyframe) better. Change-Id: I51fc3bdc51c76e290b47ec7b9044780e5b67136c Reviewed-on: https://gerrit.libreoffice.org/26208 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/qa/extras/odfimport')
-rwxr-xr-xsw/qa/extras/odfimport/data/tdf76322_columnBreakInHeader.docxbin0 -> 11357 bytes
-rw-r--r--sw/qa/extras/odfimport/odfimport.cxx6
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/odfimport/data/tdf76322_columnBreakInHeader.docx b/sw/qa/extras/odfimport/data/tdf76322_columnBreakInHeader.docx
new file mode 100755
index 000000000000..6c050ae80b0b
--- /dev/null
+++ b/sw/qa/extras/odfimport/data/tdf76322_columnBreakInHeader.docx
Binary files differ
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx
index 57182c158bad..ad475a5106df 100644
--- a/sw/qa/extras/odfimport/odfimport.cxx
+++ b/sw/qa/extras/odfimport/odfimport.cxx
@@ -631,6 +631,12 @@ DECLARE_ODFIMPORT_TEST(testBnc800714, "bnc800714.fodt")
CPPUNIT_ASSERT(getProperty<bool>(getParagraph(2), "ParaKeepTogether"));
}
+DECLARE_ODFIMPORT_TEST(testTdf76322_columnBreakInHeader, "tdf76322_columnBreakInHeader.docx")
+{
+// column breaks were ignored. First line should start in column 2
+ CPPUNIT_ASSERT_EQUAL( OUString("Test1"), parseDump("/root/page[1]/header/section/column[2]/body/txt/text()") );
+}
+
DECLARE_ODFIMPORT_TEST(testTdf96113, "tdf96113.odt")
{
// Background of the formula frame was white (0xffffff), not green.