From a952d1f59f4f84380b82f1eb9e550b8f69c4be5d Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 12 Sep 2017 13:54:26 +0300 Subject: tdf#112346: take Word no-wrap limit into account also for ww8 This also makes ww8 floating-table conversion decision heuristics somewhat closer to OOXML code. Change-Id: I29ca2ebabd1758ad98e02aaf560cf2f44daec3a8 Reviewed-on: https://gerrit.libreoffice.org/42196 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- sw/qa/extras/ww8import/data/tdf112346.doc | Bin 0 -> 27648 bytes sw/qa/extras/ww8import/ww8import.cxx | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 sw/qa/extras/ww8import/data/tdf112346.doc (limited to 'sw/qa/extras') diff --git a/sw/qa/extras/ww8import/data/tdf112346.doc b/sw/qa/extras/ww8import/data/tdf112346.doc new file mode 100644 index 000000000000..af0cca219acf Binary files /dev/null and b/sw/qa/extras/ww8import/data/tdf112346.doc differ diff --git a/sw/qa/extras/ww8import/ww8import.cxx b/sw/qa/extras/ww8import/ww8import.cxx index 5ea85cc7360b..907fe47ebcff 100644 --- a/sw/qa/extras/ww8import/ww8import.cxx +++ b/sw/qa/extras/ww8import/ww8import.cxx @@ -131,6 +131,14 @@ DECLARE_WW8IMPORT_TEST(testTdf106799, "tdf106799.doc") } } +DECLARE_WW8IMPORT_TEST(testTdf112346, "tdf112346.doc") +{ + uno::Reference xDrawPageSupplier(mxComponent, uno::UNO_QUERY); + uno::Reference xDrawPage = xDrawPageSupplier->getDrawPage(); + // This was 1, multi-page table was imported as a floating one. + CPPUNIT_ASSERT_EQUAL(static_cast(0), xDrawPage->getCount()); +} + // tests should only be added to ww8IMPORT *if* they fail round-tripping in ww8EXPORT CPPUNIT_PLUGIN_IMPLEMENT(); -- cgit