sw/qa/extras/ooxmlimport/data/tdf170171.docx |binary sw/qa/extras/ooxmlimport/ooxmlimport2.cxx | 9 +++++++++ 2 files changed, 9 insertions(+)
New commits: commit 4a4253ac07382382a8e0e620a93b4e140b62619b Author: Xisco Fauli <[email protected]> AuthorDate: Thu Jan 8 22:39:09 2026 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Sat Jan 10 08:54:13 2026 +0100 tdf#170171: sw_ooxmlimport2: Add test Change-Id: Ibdc847d2a8cd6fb0c28eca996edb986a48527174 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196882 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sw/qa/extras/ooxmlimport/data/tdf170171.docx b/sw/qa/extras/ooxmlimport/data/tdf170171.docx new file mode 100644 index 000000000000..3473405131bf Binary files /dev/null and b/sw/qa/extras/ooxmlimport/data/tdf170171.docx differ diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx index 063c2def48f1..13075cad91bb 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx @@ -1392,6 +1392,15 @@ CPPUNIT_TEST_FIXTURE(Test, testInvalidRefNumPara) createSwDoc("__RefNumPara__.docx"); } +CPPUNIT_TEST_FIXTURE(Test, testTdf170171_equation_without_opening_brackets) +{ + createSwDoc("tdf170171.docx"); + // Without the fix in place, this test would have failed with + // - Expected: left [0; "+" ∞ right [ + // - Actual : left [0; "+" ∞[ + CPPUNIT_ASSERT_EQUAL(u"left [0; \"+\" ∞ right ["_ustr, getFormula(getRun(getParagraph(1), 1))); +} + CPPUNIT_TEST_FIXTURE(Test, testTdf169173) { createSwDoc("tdf169173.docx");
