Description: LO seems to ignore ExcludeClipRect EMR. Steps to Reproduce: Open attached EMF sample in LO. Actual Results: LO draws a rectangle with black stroke and yellow fill. Expected Results: Rectangle should have 'excluded' area as on the attached screenshot from MSO on win. Reproducible: Always User Profile Reset: No Additional Info: Wordpad seems to render it reasonably well too.
Created attachment 171583 [details] EMF sample ExcludeClipRect + Rectangle
Created attachment 171584 [details] Screenshot of the sample file in MSO for win
confirm in Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: a52590d76b89dc75be2aa87f4287624c89f1e82f CPU threads: 4; OS: Mac OS X 11.3; UI render: default; VCL: osx Locale: ru-RU (ru_RU.UTF-8); UI: en-US Calc: threaded
It also seems to be missed in WMF. Sample is here: https://bugs.documentfoundation.org/attachment.cgi?id=171753 Screenshot: https://bugs.documentfoundation.org/attachment.cgi?id=171754
Created attachment 171767 [details] EMF sample with xform, exclip and ellipse As per Bartosz request, to check rotation of ExcludeClipRect
Created attachment 171768 [details] Screenshot ofthe xform-exclip-ellipse opened in MS Paint
Created attachment 172299 [details] WMF sample with regular and inverted coords for ExcClipRect As per Bartosz request
Created attachment 172300 [details] Screenshot of the WMF sample opened in MS Paint Right ExcClipRect has inverted coords.
For WMF it is regression, as it is not showing anything now. For LO 6.4.7 it was ok (but inverted): Version: 6.4.7.2 Build ID: 1:6.4.7-0ubuntu0.20.04.1 CPU threads: 12; OS: Linux 5.4; UI render: default; VCL: gtk3; Locale: en-US (en_US.UTF-8); UI-Language: en-US Calc: threaded
(In reply to Bartosz from comment #9) > For WMF it is regression, as it is not showing anything now. The WMF regression started with the following commit, bibisected using repo bibisect-linux-64-7.1. https://cgit.freedesktop.org/libreoffice/core/commit/?id=8deb9b3d2f8781628db73d3b2a3c7939ea4fcc2d author Bartosz Kosiorek <gang65@poczta.onet.pl> 2021-04-02 16:06:11 +0200 committer Xisco Fauli <xiscofauli@libreoffice.org> 2021-04-06 14:04:15 +0200 tdf#37281 tdf#45820 tdf#48916 tdf#55058 EMF Implement complex clipping
(In reply to Aron Budea from comment #10) > The WMF regression started with the following commit, bibisected using repo > bibisect-linux-64-7.1. > > https://cgit.freedesktop.org/libreoffice/core/commit/ > ?id=8deb9b3d2f8781628db73d3b2a3c7939ea4fcc2d Which is the backport of this commit from 7.2: https://cgit.freedesktop.org/libreoffice/core/commit/?id=aa17ea3d36b8f1ea8cd3d2fb215e80051547439d