summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-04-10 12:15:55 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-04-19 05:31:51 +0200
commit2642643ec07cd7f3d28fe558769297578c36de19 (patch)
treef86a597e9d05e9d3e91f0f9bd4a905d6fbcb5a5f /sw
parent58e79c4394783033f61e1309214d9060e2f0adf2 (diff)
tdf#160622: Let SalLayout::GetBoundRect return basegfx::B2DRectangle
This avoids premature rounding in TextLayouterDevice::getTextBoundRect. The box in D2DWriteTextOutRenderer::performRender needs to be expanded to allow room for the line width (which now will be guaranteed on all sides; previously, the rounding could happen to give no room on some side, even prior to commit 8962141a12c966b2d891829925e6203bf8d51852). Fixes some lines partially cut off in smaller text (or zoomed out). Change-Id: I07335136021f894cf045363b4d736bfab06c64d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166236 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/uitest/writer_tests6/tdf157569.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/uitest/writer_tests6/tdf157569.py b/sw/qa/uitest/writer_tests6/tdf157569.py
index 493760ed2fc7..9177047cec51 100644
--- a/sw/qa/uitest/writer_tests6/tdf157569.py
+++ b/sw/qa/uitest/writer_tests6/tdf157569.py
@@ -24,9 +24,9 @@ class tdf157569(UITestCase):
# AssertionError: 1663 != 944
self.assertEqual(1663, nHeight)
if platform.system() == "Windows":
- self.assertEqual(2145, nWidth) # no idea why
+ self.assertEqual(2155, nWidth) # no idea why it's different on Windows
else:
- self.assertEqual(2111, nWidth)
+ self.assertEqual(2118, nWidth)
xDoc = self.xUITest.getTopFocusWindow()
xEditWin = xDoc.getChild("writer_edit")