diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2022-11-08 14:55:40 +0300 |
---|---|---|
committer | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2022-11-14 09:20:42 +0100 |
commit | b15c82e02c0a97d3523b6e46cb4ba4c958ea38d0 (patch) | |
tree | 86b87328bd365adc1c23cbb2753e0ee698190a4e /sw | |
parent | c871d797ce8675f97ef4789304bf85048cd2c8c4 (diff) |
tdf#151912: sw: suppress exceptions during SDT evluation
Failure in XPath processing during retrieving fresh value from
data source is not a critical problem and should not cancel
document loading.
Just put warning in log and continue to eval further.
Change-Id: I76ecf0e0e227f46a270db3e77d86c19f7e9ad21a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142428
Tested-by: Jenkins
Reviewed-by: Vasily Melenchuk <vasily.melenchuk@cib.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf151912.docx | bin | 0 -> 3666 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport18.cxx | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf151912.docx b/sw/qa/extras/ooxmlexport/data/tdf151912.docx Binary files differnew file mode 100644 index 000000000000..65e8d5a93f87 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf151912.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport18.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport18.cxx index 1ce78f262eef..6f76391d75dd 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport18.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport18.cxx @@ -101,6 +101,11 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf149551_mongolianVert) assertXPath(pXmlDoc, "//wps:bodyPr", "vert", "mongolianVert"); } +DECLARE_OOXMLEXPORT_TEST(testTdf151912, "tdf151912.docx") +{ + // For now just ensure roundtrip is successful +} + DECLARE_OOXMLEXPORT_TEST(testTdf147724, "tdf147724.docx") { const auto& pLayout = parseLayoutDump(); |