summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ooxmlexport
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/extras/ooxmlexport')
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf148057_columnBreak.docxbin0 -> 16139 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport25.cxx8
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf148057_columnBreak.docx b/sw/qa/extras/ooxmlexport/data/tdf148057_columnBreak.docx
new file mode 100644
index 000000000000..367ae7c01ff4
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf148057_columnBreak.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport25.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport25.cxx
index b7681ff523d3..69d5db357d34 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport25.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport25.cxx
@@ -33,6 +33,14 @@ public:
}
};
+DECLARE_OOXMLEXPORT_TEST(testTdf148057_columnBreak, "tdf148057_columnBreak.docx")
+{
+ // given a document with a linefeed immediately following a column break (in non-column section)
+
+ // don't lose the column break to the paragraph's no-inherited-page-break property.
+ CPPUNIT_ASSERT_EQUAL(2, getPages());
+}
+
DECLARE_OOXMLEXPORT_TEST(testTdf166544_noTopMargin_fields, "tdf166544_noTopMargin_fields.docx")
{
// given a document with a hyperlink field containing a page break