Bug 142975

Summary: [EMF+] DrawString with Brush
Product: LibreOffice Reporter: Valek Filippov <frob>
Component: filters and storageAssignee: Bartosz <gang65>
Status: RESOLVED FIXED    
Severity: normal CC: gang65
Priority: medium    
Version: 7.3.0.0 alpha0+   
Hardware: All   
OS: All   
Whiteboard: target:7.3.0 target:7.2.0.0.beta2
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103859    
Attachments: EMF sample of EMF+ DrawString with Brush MR
How it should look like

Description Valek Filippov 2021-06-21 22:39:02 UTC
Description:
LO supports DrawSDriverString with Brush, but not DrawString with Brush.

Steps to Reproduce:
Open attached EMF sample.

Actual Results:
LO draws empty object.

Expected Results:
It should draw a dark red string "0123456789ABCDEF"


Reproducible: Always


User Profile Reset: No



Additional Info:
DrawDriverString geets the color here: https://github.com/LibreOffice/core/blob/master/drawinglayer/source/tools/emfphelperdata.cxx#L2090

Probably it could be picked for DrawString implementation.
Comment 1 Valek Filippov 2021-06-21 22:40:20 UTC
Created attachment 173072 [details]
EMF sample of EMF+ DrawString with Brush MR
Comment 2 Valek Filippov 2021-06-21 22:41:20 UTC
Created attachment 173073 [details]
How it should look like
Comment 3 Commit Notification 2021-06-23 16:25:51 UTC
Bartosz Kosiorek committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/9e8c35cc3f1f5e1c08afd46e0d0fbc07f1ff21f9

EMF+ tdf#142975 Add brush support to DrawString record

It will be available in 7.3.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 4 Commit Notification 2021-06-24 08:31:39 UTC
Bartosz Kosiorek committed a patch related to this issue.
It has been pushed to "libreoffice-7-2":

https://git.libreoffice.org/core/commit/1eb828add814108d63ea61e38d948a0337fc4ee6

EMF+ tdf#142975 Add brush support to DrawString record

It will be available in 7.2.0.0.beta2.

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.