Bug 151844

Summary: EMR_EXTSELECTCLIPRGN does not factor in window origin coordinates
Product: LibreOffice Reporter: Paris Oplopoios <parisoplop>
Component: DrawAssignee: Paris Oplopoios <parisoplop>
Status: RESOLVED FIXED    
Severity: normal Keywords: filter:emf
Priority: medium    
Version: 7.5.0.0 alpha0+   
Hardware: All   
OS: All   
Whiteboard: target:7.5.0
Crash report or crash signature: Regression By:
Attachments: Example file
LO left, PPoint right

Description Paris Oplopoios 2022-10-31 17:14:48 UTC
Created attachment 183352 [details]
Example file

EMR_EXTSELECTCLIPRGN clips text (drawn with EMR_EXTTEXTOUTW) in the attached file even though it shouldn't be clipped because of an earlier EMR_SETWINDOWORGEX drawing command that sets the window origin y to -10.
Comment 1 Paris Oplopoios 2022-10-31 17:18:09 UTC
Created attachment 183353 [details]
LO left, PPoint right
Comment 2 Paris Oplopoios 2022-10-31 17:22:49 UTC
I am working on this.
Comment 3 Commit Notification 2022-11-08 09:51:33 UTC
Paris Oplopoios committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/b9eaed7a4c484dde0b5c61b34b4beb60a101f661

tdf#151844 Make EMR_EXTSELECTCLIPRGN factor in WinOrg coordinates

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.