summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ooxmlexport
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-03 10:20:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-03 10:47:58 +0100
commit9d0c6308be5fb086e51cb8b4b0652f3d6184fd3c (patch)
tree14961003848ca3583aead3d3f41d84929c91f57a /sw/qa/extras/ooxmlexport
parentc0b70ec34d5e056bb92a66cbf83838923cb41fee (diff)
fix crash on export of ooo34469-1.sxw to docx
Change-Id: I94a11bd24ccbc550c9fa555b1a0b5493ccd9f904
Diffstat (limited to 'sw/qa/extras/ooxmlexport')
-rw-r--r--sw/qa/extras/ooxmlexport/data/ooo34469-1.odtbin0 -> 16812 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx6
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/ooo34469-1.odt b/sw/qa/extras/ooxmlexport/data/ooo34469-1.odt
new file mode 100644
index 000000000000..7cf031fb2fcd
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/ooo34469-1.odt
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx
index 9121588c9d3f..5e1893708acd 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx
@@ -671,6 +671,12 @@ DECLARE_OOXMLEXPORT_TEST(testFixedDateFields, "fixed-date-field.docx")
}
}
+DECLARE_OOXMLEXPORT_TEST(testOO34469, "ooo34469-1.odt")
+{
+ if (xmlDocPtr pXmlDoc = parseExport())
+ assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:hyperlink[1]", "anchor", "2.9.2.Creating New files|outline");
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */