Bug 129459

Summary: EMF+ not filling shapes when using solid color brush
Product: LibreOffice Reporter: Chris Sherlock <chris.sherlock79>
Component: graphics stackAssignee: Chris Sherlock <chris.sherlock79>
Status: VERIFIED FIXED    
Severity: normal CC: chris.sherlock79, gang65, xiscofauli
Priority: medium Keywords: filter:emf
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard: target:6.5.0 target:6.4.0.2
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 55058    
Attachments: test_libuemf_p_ref.emf test image from the libUEMF project
How test_libuemf_p_ref.emf should display
How test_libuemf_p_ref.emf displays

Description Chris Sherlock 2019-12-17 22:00:33 UTC
Description:
EMF+ shapes are not filling when the brush style is a solid color. 

Steps to Reproduce:
Open test image EMF+ file



Actual Results:
Notice that the top shapes do not have a fill color.

Expected Results:
Images should have purple fill color. 


Reproducible: Always


User Profile Reset: No



Additional Info:
This is caused because we aren't handling brushes with a solid fill color.
Comment 1 Chris Sherlock 2019-12-17 22:01:27 UTC
Created attachment 156636 [details]
test_libuemf_p_ref.emf test image from the libUEMF project
Comment 2 Chris Sherlock 2019-12-17 22:02:04 UTC
Created attachment 156637 [details]
How test_libuemf_p_ref.emf should display
Comment 3 Chris Sherlock 2019-12-17 22:02:34 UTC
Created attachment 156638 [details]
How test_libuemf_p_ref.emf displays
Comment 4 Chris Sherlock 2019-12-17 22:17:52 UTC
I have submitted a patch to gerrit to fix this:

https://gerrit.libreoffice.org/#/c/85343/
Comment 5 Commit Notification 2019-12-18 02:18:12 UTC
Chris Sherlock committed a patch related to this issue.
It has been pushed to "master":

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

tdf#129459 drawinglayer: fill shapes with solid color brush

It will be available in 6.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.
Comment 6 Xisco FaulĂ­ 2019-12-18 13:03:08 UTC
Verified in

Version: 6.5.0.0.alpha0+
Build ID: fb1eac64df88baae9f211d052793773686c0e180
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

@Chris Sherlock, thanks for fixing this issue! Should it be closed as RESOLVED FIXED ?
Comment 7 Commit Notification 2019-12-18 13:05:29 UTC
Chris Sherlock committed a patch related to this issue.
It has been pushed to "libreoffice-6-4":

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

tdf#129459 drawinglayer: fill shapes with solid color brush

It will be available in 6.4.0.2.

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.
Comment 8 Chris Sherlock 2019-12-18 19:04:50 UTC
Absolutely, it should be resolved fixed.
Comment 9 Xisco FaulĂ­ 2019-12-19 08:17:36 UTC
(In reply to Chris Sherlock from comment #8)
> Absolutely, it should be resolved fixed.

Hi Chris, 
Ok, closing as RESOLVED FIXED. In the future, you can do it yourself, normally developers close the bugs once their work is done. Thanks for fixing this issue.