[Libreoffice-bugs] [Bug 142997] New: [EMF+] stringAlignmentHorizontalOffset is incorrect for StringFormat StringAlign set to 'center' or 'far'
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 23 04:13:43 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=142997
Bug ID: 142997
Summary: [EMF+] stringAlignmentHorizontalOffset is incorrect
for StringFormat StringAlign set to 'center' or 'far'
Product: LibreOffice
Version: 7.3.0.0 alpha0+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: filters and storage
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: frob at df.ru
Description:
LO calculates incorrect value for stringAlignmentHorizontalOffset.
It seems to become worse with larger font sizes.
Steps to Reproduce:
Open attached EMF sample.
Actual Results:
LO draws "H Align center H" and "H Align far HHHH" lines progressively shifted
to the left from their expected positions.
Expected Results:
'Align center' string should be centered, 'Align far' string should be right
aligned with the 'scale'.
Reproducible: Always
User Profile Reset: No
Additional Info:
Minified from AOO i#74168.
Calculation happens here:
https://github.com/LibreOffice/core/blob/master/drawinglayer/source/tools/emfphelperdata.cxx#L1578:L1586
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210623/dcb266f5/attachment.htm>
More information about the Libreoffice-bugs
mailing list