diff options
author | László Németh <nemeth@numbertext.org> | 2019-08-23 16:10:20 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-08-26 15:23:20 +0200 |
commit | 419b70b5d4db227509614bdea5b4b89bcf7a6032 (patch) | |
tree | 58877a845ee4d26fe814007dddb93fe0db5ed64c /sw | |
parent | 254fd20dd5cb8206c7eac19f11dec0369c12d366 (diff) |
tdf#105485 DOCX: import deleted comments as deleted
in tracked deletions, instead of importing them
as normal comments of the actual text content,
ie. showing them in the Hide Changes mode, too,
without crossing out.
Change-Id: I7f84d2e9f2dd280bbca2236b40bab83b94d40c68
Reviewed-on: https://gerrit.libreoffice.org/78018
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf105485.docx | bin | 0 -> 7804 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport11.cxx | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf105485.docx b/sw/qa/extras/ooxmlexport/data/tdf105485.docx Binary files differnew file mode 100644 index 000000000000..be8a10e41a04 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf105485.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx index b340666649ff..fc933a67df9c 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx @@ -883,6 +883,13 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf126245, "tdf126245.docx") assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:pPr/w:pPrChange/w:pPr/w:numPr/w:numId", "val", "1"); } +DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf105485, "tdf105485.docx") +{ + xmlDocPtr pXmlDoc = parseExport("word/document.xml"); + // import change tracking of deleted comments + assertXPath(pXmlDoc, "//w:del/w:r/w:commentReference"); +} + DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf125894, "tdf125894.docx") { xmlDocPtr pXmlDoc = parseExport("word/document.xml"); |