[Libreoffice-bugs] [Bug 142567] New: [EMF] RestoreDC shoud read and use 'SavedDC' value
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun May 30 15:02:54 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=142567
Bug ID: 142567
Summary: [EMF] RestoreDC shoud read and use 'SavedDC' value
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:
[MS-EMF] 2.3.1.16 says:
"SavedDC (4 bytes): A signed integer that specifies the saved state to restore
relative to the current state. This value MUST be negative; –1 represents the
state that was most recently saved on the stack, –2 the one before that, etc."
LO simply pops the context once.
https://github.com/LibreOffice/core/blob/master/emfio/source/reader/emfreader.cxx#L1103:L1107
Steps to Reproduce:
Open attached EMF sample.
Actual Results:
It shows empty object.
Expected Results:
It should show red rectangle.
Reproducible: Always
User Profile Reset: No
Additional Info:
The issue is isolated from tdf#59814.
LO doesn't handle the stack of the context properly, as a result the
combination of ModifyWorldTransform records places the rectangle outside of the
visible area.
In the original bug that leads to shifts of some shape positions.
--
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/8fb0a984/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list