[Libreoffice-bugs] [Bug 142567] [EMF] RestoreDC shoud read and use 'SavedDC' value

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun May 30 15:13:26 UTC 2021


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

--- Comment #2 from Valek Filippov <frob at df.ru> ---
Implementation in WMF has the same problem.
However, implementation is not the same.

>From [MS-WMF] 2.3.5.10:
"nSavedDC (2 bytes): A 16-bit signed integer that defines the saved state to be
restored. If this member is positive, nSavedDC represents a specific instance
of the state to be restored. If this member is negative, nSavedDC represents an
instance relative to the current state."

I will try to make a sample to demonstrate a problem for both: negative below
-1 and positive values.

Unfortunately it's unclear if in case of WMF newer contexts are preserved or
disposed after restoring to the older one in the stack.
Ability to point out to the specific context could allow re-entrance to the
previously used context (eg. switch back and forth between two contexts w/o
setting the values again for the "newer" one).

-- 
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/47330bab/attachment.htm>


More information about the Libreoffice-bugs mailing list