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@lists.freedesktop.org
          Reporter: f...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to