[Libreoffice-bugs] [Bug 142571] New: [EMF] PolyLineTo16 and probably other "*16" EMRs have swapped coordinates

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun May 30 20:30:03 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=142571

            Bug ID: 142571
           Summary: [EMF] PolyLineTo16 and probably other "*16" EMRs have
                    swapped coordinates
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: graphics stack
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: frob at df.ru

Description:
Despite [MS-EMF] description of the aPoints in PolyLineTo16 EMR as
"aPoints (variable): A Count length array of PointS objects ([MS-WMF] section
2.2.2.16, which specifies the array of points."
in case of EMF coordinates of the PointS come in the swapped order.

LO seems to read it the same way or WMF and EMF which creates an interesting
effect on the ratio.

Steps to Reproduce:
Open attached EMF sample.

Actual Results:
LO draws a red frame in "portrait" orientation.

Expected Results:
The frame should have "landscape" orientation.


Reproducible: Always


User Profile Reset: No



Additional Info:
That probably impacts other "16-bit" EMRs too.

This problem is found during analysis of tdf#103903, fixing this will improve
(or fix) 103903 too.

-- 
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/20210530/32c9856e/attachment.htm>


More information about the Libreoffice-bugs mailing list