summaryrefslogtreecommitdiff
path: root/emfio/qa/cppunit/emf
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-07-17 12:38:41 +0300
committerخالد حسني <khaled@libreoffice.org>2023-07-23 06:01:56 +0200
commit4b743de97fc133623e46827869c4ea3eb845ad47 (patch)
tree6386636517576c81502367819996972877adc544 /emfio/qa/cppunit/emf
parentea0f9776ed8e7e9809853d292923b86756274564 (diff)
tdf#156234: Don’t round glyph coordinates when doing subpixel positioning
When doing subpixel positioning (i.e. OutputDevice is in map mode), delay the rounding of the glyph coordinates after converting from pixel to logical units to minimize the loss of precision as much as possible. Some test expectations, expectedly, changes due to the improved positioning precision. Change-Id: I2591e3c7d4923ba7886a35bf53db759273354e24 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154292 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'emfio/qa/cppunit/emf')
-rw-r--r--emfio/qa/cppunit/emf/EmfImportTest.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/emfio/qa/cppunit/emf/EmfImportTest.cxx b/emfio/qa/cppunit/emf/EmfImportTest.cxx
index 7c3e2ee6e8be..9e892b67eaa5 100644
--- a/emfio/qa/cppunit/emf/EmfImportTest.cxx
+++ b/emfio/qa/cppunit/emf/EmfImportTest.cxx
@@ -1389,7 +1389,7 @@ CPPUNIT_TEST_FIXTURE(Test, testExtTextOutOpaqueAndClipWMF)
assertXPath(pDocument, aXPathPrefix + "mask/group[3]/mask/group/polypolygoncolor", "color",
"#ff8000");
assertXPath(pDocument, aXPathPrefix + "mask/group[3]/mask/group/polypolygoncolor/polypolygon",
- "path", "m1067 1067h1270v473h-1270z");
+ "path", "m1067 1067h1296v473h-1296z");
assertXPath(pDocument, aXPathPrefix + "mask/group[3]/mask/group/textsimpleportion", "text",
"OOOO");
assertXPath(pDocument, aXPathPrefix + "mask/group[3]/mask/group/textsimpleportion", "fontcolor",