summaryrefslogtreecommitdiffstats
path: root/sw/qa/extras/rtfimport/rtfimport.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-07-06 09:09:41 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-07-06 09:16:02 +0200
commitffc7b671e213d366e59d39ddbbef66544ebf01e5 (patch)
tree4bd44fc97f71be6b327b8dac3b5ee487b72d3d81 /sw/qa/extras/rtfimport/rtfimport.cxx
parentloplugin:unusedmethods sax,shell,stoc,basegfx (diff)
downloadcore-ffc7b671e213d366e59d39ddbbef66544ebf01e5.tar.gz
core-ffc7b671e213d366e59d39ddbbef66544ebf01e5.zip
tdf#92481 RTF import: handle \widowctrl
Change-Id: I1af1d6bc150c16a2c6b0fe788a41c8c18caee6c6
Diffstat (limited to 'sw/qa/extras/rtfimport/rtfimport.cxx')
-rw-r--r--sw/qa/extras/rtfimport/rtfimport.cxx6
1 files changed, 6 insertions, 0 deletions
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: */