diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-02-02 15:29:24 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-02-02 15:38:47 +0100 |
commit | 3974e9952102dbfb4f004872768b1096133bd9a5 (patch) | |
tree | c29d161eddddb02585af3005e04ecc343a65850a /sw/qa | |
parent | 0cd3e819ecef72df2d586facd4e3f635fb95146a (diff) |
fdo#58646 fix import of RTF_PAGE in cont section when having titlepg
Change-Id: Ia632edb24869ddfb76a029fdb460bcf24d9a2059
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/rtfimport/data/fdo58646.rtf | 7 | ||||
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfimport/data/fdo58646.rtf b/sw/qa/extras/rtfimport/data/fdo58646.rtf new file mode 100644 index 000000000000..4314272e54a9 --- /dev/null +++ b/sw/qa/extras/rtfimport/data/fdo58646.rtf @@ -0,0 +1,7 @@ +{\rtf1
+\sbknone
+\titlepg
+first page
+\page\par
+second page
+}
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index f1e9626d6fc4..ab8ac50e4817 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -138,6 +138,7 @@ public: void testFdo58933(); void testFdo44053(); void testFdo48440(); + void testFdo58646(); CPPUNIT_TEST_SUITE(Test); #if !defined(MACOSX) && !defined(WNT) @@ -247,6 +248,7 @@ void Test::run() {"fdo58933.rtf", &Test::testFdo58933}, {"fdo44053.rtf", &Test::testFdo44053}, {"fdo48440.rtf", &Test::testFdo48440}, + {"fdo58646.rtf", &Test::testFdo58646}, }; header(); for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i) @@ -1070,6 +1072,12 @@ void Test::testFdo48440() CPPUNIT_ASSERT_EQUAL(2, getPages()); } +void Test::testFdo58646() +{ + // Page break was ignored inside a continous section, on title page. + CPPUNIT_ASSERT_EQUAL(2, getPages()); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_PLUGIN_IMPLEMENT(); |