sw/qa/extras/odfimport/data/tdf167774.odt |binary sw/qa/extras/odfimport/odfimport.cxx | 15 +++++++++++++++ 2 files changed, 15 insertions(+)
New commits: commit 94861c3ff59b485d7b8f502507b8a487f86bab0e Author: Xisco Fauli <[email protected]> AuthorDate: Thu Aug 21 18:39:47 2025 +0200 Commit: Xisco Fauli <[email protected]> CommitDate: Fri Aug 22 17:44:44 2025 +0200 tdf#167774: sw_odfimport: Add test Change-Id: I781bd1bbae10f2ccc0660b39e976d99c72c4fee0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190021 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> (cherry picked from commit 3d411a417db35c40e990c2cab09f65198ec0371b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190031 diff --git a/sw/qa/extras/odfimport/data/tdf167774.odt b/sw/qa/extras/odfimport/data/tdf167774.odt new file mode 100644 index 000000000000..c0714c9cadcb Binary files /dev/null and b/sw/qa/extras/odfimport/data/tdf167774.odt differ diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx index a78a9fddf236..8dcbc2776b5d 100644 --- a/sw/qa/extras/odfimport/odfimport.cxx +++ b/sw/qa/extras/odfimport/odfimport.cxx @@ -1545,6 +1545,21 @@ CPPUNIT_TEST_FIXTURE(Test, testWindowsFileZone) #endif } +CPPUNIT_TEST_FIXTURE(Test, testTdf167774) +{ + createSwDoc("tdf167774.odt"); + + CPPUNIT_ASSERT_EQUAL(4, getParagraphs()); + + for (int i = 1; i <= 4; ++i) + { + // Without the fix in place, this test would have failed with + // - Expected: 9 + // - Actual : 10.8 + CPPUNIT_ASSERT_EQUAL(float(9), getProperty<float>(getParagraph(i), u"CharHeight"_ustr)); + } +} + CPPUNIT_TEST_FIXTURE(Test, testEmptyTrailingSpans) { createSwDoc("emptyParagraphLoosesFontHeight.fodt");
