summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-20 18:04:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-20 18:22:39 +0100
commit20e64b6012442749d01810869229613ea36be3a9 (patch)
tree09c8d8289b61167311a71d78b9b7506ba4315459 /sw/qa
parent994bb22c8f34786c1d4b0a787f85c16f117aba96 (diff)
fix assert on exporting ooo106020-1.odt to docx
the dread msword column limit Change-Id: Icbf7fc396de62286d523516da815dabf62336567
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlexport/data/ooo106020-1.odtbin0 -> 11044 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport5.cxx8
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/ooo106020-1.odt b/sw/qa/extras/ooxmlexport/data/ooo106020-1.odt
new file mode 100644
index 000000000000..9cc774b1747b
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/ooo106020-1.odt
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
index b655b99dfd10..3df813eb2ade 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
@@ -858,6 +858,14 @@ DECLARE_OOXMLEXPORT_TEST(fdo60957, "fdo60957-2.docx")
assertXPath(pXmlDoc, "//w:tbl", 2);
}
+//This has more cells than msword supports, we must balance the
+//number of cell start and ends
+DECLARE_OOXMLEXPORT_TEST(testOO106020, "ooo106020-1.odt")
+{
+ if (xmlDocPtr pXmlDoc = parseExport("word/document.xml"))
+ assertXPath(pXmlDoc, "//w:tbl", 1);
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */