diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-06-01 15:25:28 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-06-01 15:49:39 +0200 |
commit | ef30d351da288b3513cfd30cb82bff7e0827fcb3 (patch) | |
tree | b61c14f9eeea16c7a3e0e06a0fcc44445dae2cfc /vcl/qa | |
parent | e899a75fc6dd600ea9992c851a42734b334122b6 (diff) |
tdf#155623: Revert "tdf#155557: Fix drawing mixed direction underlined text"
This reverts commit 99d22fd79c5532fd6c1b167996e1c27216b92469.
Lets revert and figure out a less radical fix for the original issue.
Change-Id: If3025d32019e953b7946ebe4209daf74efc5e15a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152490
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'vcl/qa')
-rw-r--r-- | vcl/qa/cppunit/pdfexport/pdfexport.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx index 5f8cce35e69e..0739cd25cd8a 100644 --- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx +++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx @@ -1338,6 +1338,13 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest, testTdf145274) int nPageObjectCount = pPage->getObjectCount(); + // Without the fix in place, this test would have failed with + // - Expected: 6 + // - Actual : 4 + CPPUNIT_ASSERT_EQUAL(6, nPageObjectCount); + + auto pTextPage = pPage->getTextPage(); + for (int i = 0; i < nPageObjectCount; ++i) { std::unique_ptr<vcl::pdf::PDFiumPageObject> pPageObject = pPage->getObject(i); |