Bug 142037 - [WMF/EMF] ExcludeClipRect is not supported
Summary: [WMF/EMF] ExcludeClipRect is not supported
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Bartosz
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
 
Reported: 2021-05-02 00:26 UTC by Valek Filippov
Modified: 2022-04-22 00:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
EMF sample ExcludeClipRect + Rectangle (280 bytes, image/x-emf)
2021-05-02 00:27 UTC, Valek Filippov
Details
Screenshot of the sample file in MSO for win (1.06 KB, image/png)
2021-05-02 00:28 UTC, Valek Filippov
Details
EMF sample with xform, exclip and ellipse (248 bytes, image/x-emf)
2021-05-07 19:22 UTC, Valek Filippov
Details
Screenshot ofthe xform-exclip-ellipse opened in MS Paint (2.69 KB, image/png)
2021-05-07 19:22 UTC, Valek Filippov
Details
WMF sample with regular and inverted coords for ExcClipRect (152 bytes, image/x-wmf)
2021-05-24 15:13 UTC, Valek Filippov
Details
Screenshot of the WMF sample opened in MS Paint (816 bytes, image/png)
2021-05-24 15:15 UTC, Valek Filippov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valek Filippov 2021-05-02 00:26:48 UTC
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.
Comment 1 Valek Filippov 2021-05-02 00:27:54 UTC
Created attachment 171583 [details]
EMF sample ExcludeClipRect + Rectangle
Comment 2 Valek Filippov 2021-05-02 00:28:22 UTC
Created attachment 171584 [details]
Screenshot of the sample file in MSO for win
Comment 3 Roman Kuznetsov 2021-05-03 13:38:44 UTC
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
Comment 4 Valek Filippov 2021-05-07 16:20:45 UTC
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
Comment 5 Valek Filippov 2021-05-07 19:22:06 UTC
Created attachment 171767 [details]
EMF sample with xform, exclip and ellipse

As per Bartosz request, to check rotation of ExcludeClipRect
Comment 6 Valek Filippov 2021-05-07 19:22:38 UTC
Created attachment 171768 [details]
Screenshot ofthe xform-exclip-ellipse opened in MS Paint
Comment 7 Valek Filippov 2021-05-24 15:13:41 UTC
Created attachment 172299 [details]
WMF sample with regular and inverted coords for ExcClipRect

As per Bartosz request
Comment 8 Valek Filippov 2021-05-24 15:15:53 UTC
Created attachment 172300 [details]
Screenshot of the WMF sample opened in MS Paint

Right ExcClipRect has inverted coords.
Comment 9 Bartosz 2021-05-25 10:47:40 UTC
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
Comment 10 Aron Budea 2022-04-22 00:46:08 UTC
(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
Comment 11 Aron Budea 2022-04-22 00:47:13 UTC
(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