diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-04-25 11:21:06 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-04-25 11:59:00 +0200 |
commit | bec0bab00eeed78ccdb7065554dcf9e898f499fa (patch) | |
tree | f3d30b2f71d1ecf7ad39ca675a3c9f93d6a910aa /sw | |
parent | d09182127bd215236c71796f349e2226cb712700 (diff) |
fdo#48193 fix RTF import of fields without a result
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/rtftok/data/fdo48193.rtf | 10 | ||||
-rw-r--r-- | sw/qa/extras/rtftok/rtftok.cxx | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/sw/qa/extras/rtftok/data/fdo48193.rtf b/sw/qa/extras/rtftok/data/fdo48193.rtf new file mode 100644 index 000000000000..ca585496eaf4 --- /dev/null +++ b/sw/qa/extras/rtftok/data/fdo48193.rtf @@ -0,0 +1,10 @@ +{\rtf1 +\pard\plain +foo +{\field +{\*\fldinst +{\f8\fs16\f8 PAGE } +} +} +bar +\par } diff --git a/sw/qa/extras/rtftok/rtftok.cxx b/sw/qa/extras/rtftok/rtftok.cxx index 0bb45e47d0d7..48e33e23a4b7 100644 --- a/sw/qa/extras/rtftok/rtftok.cxx +++ b/sw/qa/extras/rtftok/rtftok.cxx @@ -86,6 +86,7 @@ public: void testFdo48356(); void testFdo48023(); void testFdo48876(); + void testFdo48193(); CPPUNIT_TEST_SUITE(RtfModelTest); #if !defined(MACOSX) && !defined(WNT) @@ -112,6 +113,7 @@ public: CPPUNIT_TEST(testFdo48356); CPPUNIT_TEST(testFdo48023); CPPUNIT_TEST(testFdo48876); + CPPUNIT_TEST(testFdo48193); #endif CPPUNIT_TEST_SUITE_END(); @@ -616,6 +618,12 @@ void RtfModelTest::testFdo48876() CPPUNIT_ASSERT_EQUAL(style::LineSpacingMode::MINIMUM, aSpacing.Mode); } +void RtfModelTest::testFdo48193() +{ + load("fdo48193.rtf"); + CPPUNIT_ASSERT_EQUAL(7, getLength()); +} + CPPUNIT_TEST_SUITE_REGISTRATION(RtfModelTest); CPPUNIT_PLUGIN_IMPLEMENT(); |