diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-06 09:09:41 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-06 09:16:02 +0200 |
commit | ffc7b671e213d366e59d39ddbbef66544ebf01e5 (patch) | |
tree | 4bd44fc97f71be6b327b8dac3b5ee487b72d3d81 /sw | |
parent | 04c0b70c9bbd7c8d6e30a95c5693d283c992fd98 (diff) |
tdf#92481 RTF import: handle \widowctrl
Change-Id: I1af1d6bc150c16a2c6b0fe788a41c8c18caee6c6
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/rtfimport/data/tdf92481.rtf | 6 | ||||
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfimport/data/tdf92481.rtf b/sw/qa/extras/rtfimport/data/tdf92481.rtf new file mode 100644 index 000000000000..09a6c5e5934f --- /dev/null +++ b/sw/qa/extras/rtfimport/data/tdf92481.rtf @@ -0,0 +1,6 @@ +{\rtf1 +\widowctrl +\pard\plain +Hello. +\par +} diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index 24116ef86ac0..7ec1931d53b9 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -2313,6 +2313,12 @@ DECLARE_RTFIMPORT_TEST(testTdf92061, "tdf92061.rtf") CPPUNIT_ASSERT_EQUAL(OUString("body-after"), getRun(getParagraph(1), 3)->getString()); } +DECLARE_RTFIMPORT_TEST(testTdf92481, "tdf92481.rtf") +{ + // This was 0, RTF_WIDOWCTRL was not imported. + CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int8>(2), getProperty<sal_Int8>(getParagraph(1), "ParaWidows")); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |