summaryrefslogtreecommitdiff
path: root/sw/qa/extras/rtfexport/rtfexport.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-04-22 14:49:41 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-04-22 15:08:48 +0200
commit55c832d86e6cb06e9d6423ce5e6245189bc80da1 (patch)
treee9ab7eb07320462856c2c8167e03fb4c04a0e58a /sw/qa/extras/rtfexport/rtfexport.cxx
parent5c6b74f24494a0426067dfcb54b7b8fb0e01c821 (diff)
fdo#77600 RTF export: always close URL's before the end of run
In case the URL text has multiple portions, then MSWordExportBase generates multiple URL's anyway, and this helps to avoid loosing some direct formatting of the remaining portions of the paragraph. Change-Id: Ifd72741de610ce69b9ae0978aa8f9a532a3aeed2
Diffstat (limited to 'sw/qa/extras/rtfexport/rtfexport.cxx')
-rw-r--r--sw/qa/extras/rtfexport/rtfexport.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx
index a0ffe5d164cf..c395ec9e64c5 100644
--- a/sw/qa/extras/rtfexport/rtfexport.cxx
+++ b/sw/qa/extras/rtfexport/rtfexport.cxx
@@ -619,6 +619,12 @@ DECLARE_RTFEXPORT_TEST(testLineNumbering, "linenumbering.rtf")
CPPUNIT_ASSERT_EQUAL(sal_Int32(5), getProperty<sal_Int32>(xPropertySet, "Interval"));
}
+DECLARE_RTFEXPORT_TEST(testFdo77600, "fdo77600.rtf")
+{
+ // This was 'Liberation Serif'.
+ CPPUNIT_ASSERT_EQUAL(OUString("Arial"), getProperty<OUString>(getRun(getParagraph(1), 3), "CharFontName"));
+}
+
#endif
CPPUNIT_PLUGIN_IMPLEMENT();