sw/qa/extras/ooxmlimport/data/tdf169843.docx |binary sw/qa/extras/ooxmlimport/ooxmlimport2.cxx | 10 ++++++++++ 2 files changed, 10 insertions(+)
New commits: commit 8b9a76140691635ca3625f108e1a145dfdc3fb9a Author: Xisco Fauli <[email protected]> AuthorDate: Mon Jan 5 13:06:14 2026 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Mon Jan 5 23:57:49 2026 +0100 tdf#169843: sw_ooxmlimport2: Add test Change-Id: I941728c95d903f416ce9c19a7268f43448be6e15 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196565 Tested-by: Jenkins Reviewed-by: Pranam Lashkari <[email protected]> diff --git a/sw/qa/extras/ooxmlimport/data/tdf169843.docx b/sw/qa/extras/ooxmlimport/data/tdf169843.docx new file mode 100644 index 000000000000..5850db48ec50 Binary files /dev/null and b/sw/qa/extras/ooxmlimport/data/tdf169843.docx differ diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx index e6e1a6dc9190..063c2def48f1 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx @@ -739,6 +739,16 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf114217) CPPUNIT_ASSERT(pTab1->HasFollow()); } +CPPUNIT_TEST_FIXTURE(Test, testTdf169843_set_letter_formula) +{ + createSwDoc("tdf169843.docx"); + + // Without the fix in place, this test would have failed with + // - Expected: setR " " + // - Actual : " "R " " + CPPUNIT_ASSERT_EQUAL(u" setR \" \""_ustr, getFormula(getRun(getParagraph(1), 1))); +} + CPPUNIT_TEST_FIXTURE(Test, testTdf119200) { createSwDoc("tdf119200.docx");
