Bug 142206 - [EMF] WidenPath support
Summary: [EMF] WidenPath support
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
7.0.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
 
Reported: 2021-05-11 01:55 UTC by Valek Filippov
Modified: 2023-05-13 03:18 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
EMF sample with Path/Arc/WidenPath/StrokeAndFillPath (400 bytes, image/x-emf)
2021-05-11 01:57 UTC, Valek Filippov
Details
Screenshot of the sample EMF file opened in MS Paint (1.50 KB, image/png)
2021-05-11 01:58 UTC, Valek Filippov
Details
How it looks in LibreOffice 7.2 master (4.45 KB, image/png)
2021-05-11 07:52 UTC, Xisco Faulí
Details
EMF sample widen path for rectangle (384 bytes, image/x-emf)
2021-05-12 01:00 UTC, Valek Filippov
Details
Screenshot of the sample EMF file (Rectangle) opened in MS Paint (1.83 KB, image/png)
2021-05-12 01:01 UTC, Valek Filippov
Details
How widened rectangle looks like in LO 7.2-master (May 11, 2021) (2.22 KB, image/png)
2021-05-12 01:03 UTC, Valek Filippov
Details
EMF sample with pen style PS_JOIN_BEVEL (384 bytes, image/x-emf)
2021-05-12 01:10 UTC, Valek Filippov
Details
Screenshot of the EMF with PS 0x1000 opened in MS Paint (1.71 KB, image/png)
2021-05-12 01:12 UTC, Valek Filippov
Details
EMF sample with pen style PS_JOIN_MITER (384 bytes, image/x-emf)
2021-05-12 01:32 UTC, Valek Filippov
Details
Screenshot of the EMF with PS 0x2000 (JOIN_MITER) opened in MS Paint (1.68 KB, image/png)
2021-05-12 01:34 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-11 01:55:58 UTC
Description:
LO seems to ignore WidenPath MR

Steps to Reproduce:
Open attached EMF sample

Actual Results:
LO shows thick black arc.

Expected Results:
The arc should have orange fill and thin black stroke.


Reproducible: Always


User Profile Reset: No



Additional Info:
MS Paint seems to have some glitch in the 'widening' algorithm implementation that creates few cuts on the shape.
Comment 1 Valek Filippov 2021-05-11 01:57:11 UTC
Created attachment 171857 [details]
EMF sample with Path/Arc/WidenPath/StrokeAndFillPath
Comment 2 Valek Filippov 2021-05-11 01:58:00 UTC
Created attachment 171858 [details]
Screenshot of the sample EMF file opened in MS Paint
Comment 3 Xisco Faulí 2021-05-11 07:52:57 UTC
Created attachment 171864 [details]
How it looks in LibreOffice 7.2 master
Comment 4 Xisco Faulí 2021-05-11 07:59:16 UTC
(In reply to Valek Filippov from comment #0)
> Description:
> LO seems to ignore WidenPath MR
> 
> Steps to Reproduce:
> Open attached EMF sample
> 
> Actual Results:
> LO shows thick black arc.
> 
> Expected Results:
> The arc should have orange fill and thin black stroke.

This issue was fixed by

https://cgit.freedesktop.org/libreoffice/core/commit/?id=6bf2239a189423d087b2536dd7054b21df58ddc4

author	Bartosz Kosiorek <gang65@poczta.onet.pl>	2021-05-06 17:43:57 +0200
committer	Bartosz Kosiorek <gang65@poczta.onet.pl>	2021-05-06 20:59:19 +0200
commit 6bf2239a189423d087b2536dd7054b21df58ddc4 (patch)
tree e176c4f2e4f693831339106b1f01c13180d391d3
parent ef5b56123701b62b7fabeb1d1d9a7d1a4aa00d97 (diff)
tdf#55058 tdf#141982 EMF: Add rotation support for ARC, ARCTO, CHORD, PIE

@Valek, please try with a recent daily build from http://dev-builds.libreoffice.org/daily/master/

*** This bug has been marked as a duplicate of bug 141982 ***
Comment 5 Bartosz 2021-05-11 11:03:30 UTC
Thanks Xisco for checking this.
Even if the display was improved with commit: 6bf2239a189423d087b2536dd7054b21df58ddc4

the issue still needs to be fixed (add support for WIDENPATH record).
Comment 6 Valek Filippov 2021-05-12 01:00:37 UTC
Created attachment 171895 [details]
EMF sample widen path for rectangle
Comment 7 Valek Filippov 2021-05-12 01:01:58 UTC
Created attachment 171896 [details]
Screenshot of the sample EMF file (Rectangle) opened in MS Paint
Comment 8 Valek Filippov 2021-05-12 01:03:34 UTC
Created attachment 171897 [details]
How widened rectangle looks like in LO 7.2-master (May 11, 2021)
Comment 9 Valek Filippov 2021-05-12 01:10:19 UTC
Created attachment 171898 [details]
EMF sample with pen style PS_JOIN_BEVEL

Pen style affects WidenPath.
Comment 10 Valek Filippov 2021-05-12 01:12:24 UTC
Created attachment 171899 [details]
Screenshot of the EMF with PS 0x1000 opened in MS Paint

Corners are beveled as per PS_JOIN_BEVEL (0x1000)
Comment 11 Valek Filippov 2021-05-12 01:32:46 UTC
Created attachment 171900 [details]
EMF sample with pen style PS_JOIN_MITER
Comment 12 Valek Filippov 2021-05-12 01:34:06 UTC
Created attachment 171901 [details]
Screenshot of the EMF with PS 0x2000 (JOIN_MITER) opened in MS Paint
Comment 13 QA Administrators 2023-05-13 03:18:59 UTC
Dear Valek Filippov,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug