From 0d7d6f242ef87c976095d22a7f5ebf751ba77ad8 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 24 Sep 2015 07:40:14 +0200 Subject: Related: tdf#92521 RTF export: handle section break right after a table Change-Id: Ibb6e612165ec6e5d771bdf9efa13a88a72233d6f --- sw/qa/extras/rtfexport/data/tdf92521.odt | Bin 0 -> 8891 bytes sw/qa/extras/rtfexport/rtfexport.cxx | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 sw/qa/extras/rtfexport/data/tdf92521.odt (limited to 'sw/qa/extras/rtfexport') diff --git a/sw/qa/extras/rtfexport/data/tdf92521.odt b/sw/qa/extras/rtfexport/data/tdf92521.odt new file mode 100644 index 000000000000..8148e49a2275 Binary files /dev/null and b/sw/qa/extras/rtfexport/data/tdf92521.odt differ diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx index 4abea4098101..4371ef5b63f9 100644 --- a/sw/qa/extras/rtfexport/rtfexport.cxx +++ b/sw/qa/extras/rtfexport/rtfexport.cxx @@ -936,6 +936,13 @@ DECLARE_RTFEXPORT_TEST(testTdf90421, "tdf90421.fodt") } } +DECLARE_RTFEXPORT_TEST(testTdf92521, "tdf92521.odt") +{ + // There should be a page break that's in the middle of the document: right after the table. + // But there wasn't, so this was 1. + CPPUNIT_ASSERT_EQUAL(2, getPages()); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3