summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-06-20 12:52:03 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-06-20 12:59:11 +0200
commit3ea80a46860f7fe510b206845b56daad1e2d1c56 (patch)
tree2665f833d176f7116ac5f474a59495543bdf0798 /sw
parentCppunitTest_sw_ooxmlsdrexport: clean up testFDO77122 (diff)
downloadcore-3ea80a46860f7fe510b206845b56daad1e2d1c56.tar.gz
core-3ea80a46860f7fe510b206845b56daad1e2d1c56.zip
RTF import: handle column break at the very start of the document
Change-Id: Ib7d166bf1b1e5d5216d822b2b0396aa4dc535c6f
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/rtfimport/data/column-break.rtf1
-rw-r--r--sw/qa/extras/rtfimport/rtfimport.cxx6
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfimport/data/column-break.rtf b/sw/qa/extras/rtfimport/data/column-break.rtf
new file mode 100644
index 000000000000..185fcd0a8205
--- /dev/null
+++ b/sw/qa/extras/rtfimport/data/column-break.rtf
@@ -0,0 +1 @@
+{\rtf1\cols2\column hello\par}
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index 3dec26ee08ae..d834fb878ef8 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -1759,6 +1759,12 @@ DECLARE_RTFIMPORT_TEST(testFontOverride, "font-override.rtf")
CPPUNIT_ASSERT_EQUAL(OUString("Arial"), getProperty<OUString>(getRun(getParagraph(1), 1), "CharFontName"));
}
+DECLARE_RTFIMPORT_TEST(testColumnBreak, "column-break.rtf")
+{
+ // Column break at the very start of the document was ignored.
+ CPPUNIT_ASSERT_EQUAL(style::BreakType_COLUMN_BEFORE, getProperty<style::BreakType>(getParagraph(2), "BreakType"));
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */