diff options
author | Attila Bakos <bakos.attilakaroly@nisz.hu> | 2020-09-22 16:37:22 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-09-24 13:54:23 +0200 |
commit | 0d28097fadf44ed58cb5e3e9b9c04a65a7a33fd6 (patch) | |
tree | 5554d002b2d68f100f207bde14d483f6a017b47b /sw/qa/extras | |
parent | 05dc3a8f5d88819356a754450c204ca9f11d282d (diff) |
tdf#136588 sw: fix line break regression with small caps
Regression from commit 1b03a449161af225302e4b4dd2bb2e69c6d8d170
(tdf#112290 sw: fix missing line break in small capital).
This replaces the previous commit with a better solution.
Change-Id: I7510b78cd6520f260e6a3804ec69e0364b93440f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103178
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa/extras')
-rw-r--r-- | sw/qa/extras/layout/data/tdf136588.docx | bin | 0 -> 17297 bytes | |||
-rw-r--r-- | sw/qa/extras/layout/layout.cxx | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/layout/data/tdf136588.docx b/sw/qa/extras/layout/data/tdf136588.docx Binary files differnew file mode 100644 index 000000000000..606931286470 --- /dev/null +++ b/sw/qa/extras/layout/data/tdf136588.docx diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx index 5c7bfdab7ab3..4a348bdd7f09 100644 --- a/sw/qa/extras/layout/layout.cxx +++ b/sw/qa/extras/layout/layout.cxx @@ -192,6 +192,17 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testRedlineFootnotes) CheckRedlineFootnotesHidden(); } +CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestTdf136588) +{ + load(DATA_DIRECTORY, "tdf136588.docx"); + auto pXMLLayoutDump = parseLayoutDump(); + CPPUNIT_ASSERT(pXMLLayoutDump); + + //there was a bad line break before, the correct break layout is this: + assertXPath(pXMLLayoutDump, "/root/page/body/txt[2]/LineBreak[2]", "Line", + "effectively by modern-day small to "); +} + CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testRedlineFlysInBody) { loadURL("private:factory/swriter", nullptr); |