Bug 153791 - In a DOCX, both boxes have red text color, when one is black in Word
Summary: In a DOCX, both boxes have red text color, when one is black in Word
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:7.6.0 target:7.5.2
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-23 16:02 UTC by Mike Kaganski
Modified: 2023-03-09 12:45 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Two similar text boxes, one red and one black (15.90 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-02-23 16:02 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2023-02-23 16:02:45 UTC
Created attachment 185552 [details]
Two similar text boxes, one red and one black

The attached document opens in Word with red text in left-hand textbox, and black text in the right-hand textbox. In Writer, both have red text.

The problem is that the wps:style's fontRef is ignored in Word, when the paragraph has a w:shd with a w:fill specifying some non-auto color. Writer does not take that into account, and uses the color from the fontRef anyway.
Comment 1 Commit Notification 2023-02-24 15:00:17 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

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

tdf#153791: paragraph's/character's shd overrides shape style's fontRef

It will be available in 7.6.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 2 Commit Notification 2023-03-09 12:45:06 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-7-5":

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

tdf#153791: paragraph's/character's shd overrides shape style's fontRef

It will be available in 7.5.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.