diff options
author | Tünde Tóth <tundeth@gmail.com> | 2019-10-02 15:25:23 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-11-13 10:32:28 +0100 |
commit | 8bd15459527b527454900dd781f1226dade5b118 (patch) | |
tree | d46ff6a6f9a768ca846414d2db51a0a038743d3f /sw/qa | |
parent | ead34a4d34db05d5718d96b66f5e39d886c8b699 (diff) |
tdf#127925 DOCX export: fix visited hyperlink style
Custom visited hyperlink style reset to default in Word.
Change-Id: I6a36c900788bb17d4f31c60048cf65960490a46b
Reviewed-on: https://gerrit.libreoffice.org/80043
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf127925.odt | bin | 0 -> 8677 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport13.cxx | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf127925.odt b/sw/qa/extras/ooxmlexport/data/tdf127925.odt Binary files differnew file mode 100644 index 000000000000..b91e48f055de --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf127925.odt diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx index d9ee746f74b6..0d9cd773ef9a 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx @@ -881,6 +881,14 @@ DECLARE_OOXMLEXPORT_TEST(testTdf127579, "tdf127579.odt") assertXPath(pXmlDoc, "/w:document/w:body/w:p/w:hyperlink/w:r/w:rPr/w:rStyle", "val", "InternetLink"); } +DECLARE_OOXMLEXPORT_TEST(testTdf127925, "tdf127925.odt") +{ + xmlDocPtr pXmlStyles = parseExport("word/styles.xml"); + if (!pXmlStyles) + return; + + assertXPath(pXmlStyles, "/w:styles/w:style[@w:styleId='VisitedInternetLink']/w:name", "val", "FollowedHyperlink"); +} CPPUNIT_PLUGIN_IMPLEMENT(); |