diff options
author | Tünde Tóth <tundeth@gmail.com> | 2019-09-24 14:29:44 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-09-30 13:00:09 +0200 |
commit | 97fba7ebf350adcec6baa6c4a863d058fb90406a (patch) | |
tree | 66648244e3d3a60dcfc972b346aaaefc89b58a21 /sw/qa | |
parent | a0f46953883aadab1ae7cae5641d3fc1a6089f81 (diff) |
tdf#127733 DOCX export: fix internal hyperlinks to chart target
Hyperlinks to internal chart targets didn't work after export.
Change-Id: I724c6af8fd7f1961260b82331b9f62d8cbd88f25
Reviewed-on: https://gerrit.libreoffice.org/79456
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/internal_hyperlink_ole.odt | bin | 0 -> 13400 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport13.cxx | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/internal_hyperlink_ole.odt b/sw/qa/extras/ooxmlexport/data/internal_hyperlink_ole.odt Binary files differnew file mode 100644 index 000000000000..844cf1be6580 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/internal_hyperlink_ole.odt diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx index 33d767e0bd81..b95f0083e10e 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx @@ -782,6 +782,17 @@ DECLARE_OOXMLEXPORT_TEST(testTdf127732, "internal_hyperlink_frame.odt") CPPUNIT_ASSERT_EQUAL(anchor, bookmarkName); } +DECLARE_OOXMLEXPORT_TEST(testTdf127733, "internal_hyperlink_ole.odt") +{ + xmlDocPtr pXmlDoc = parseExport("word/document.xml"); + if (!pXmlDoc) + return; + + OUString bookmarkName = getXPath(pXmlDoc, "/w:document/w:body/w:p[3]/w:bookmarkStart", "name"); + OUString anchor = getXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:hyperlink", "anchor"); + CPPUNIT_ASSERT_EQUAL(anchor, bookmarkName); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |