Bug 134715 - FILESAVE: A DOCX doesn't keep changed text fill colors
Summary: FILESAVE: A DOCX doesn't keep changed text fill colors
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Styles
  Show dependency treegraph
 
Reported: 2020-07-10 13:13 UTC by Mike Kaganski
Modified: 2025-01-29 10:48 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A DOCX with black text background (18.77 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-07-10 13:13 UTC, Mike Kaganski
Details
The example file in Writer 7.2master (89.53 KB, image/png)
2020-12-02 11:34 UTC, NISZ LibreOffice Team
Details
In 6.0 and 6.1 (149.01 KB, image/png)
2020-12-02 11:55 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2020-07-10 13:13:25 UTC
Created attachment 162880 [details]
A DOCX with black text background

Open the document. Select the whole table with black background; set font color Auto, and highlight color Auto (using toolbar buttons). Save as DOCX. Reload - the background is black again (and font color is black, too).

Tested with Version: 7.0.0.1 (x64)
Build ID: 04ba7e3f1e51af6c5d653e543a620e36719083fd
CPU threads: 12; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: de-DE (ru_RU); UI: en-US
Calc: CL
Comment 1 Xisco Faulí 2020-07-10 15:51:00 UTC
Reproduced in

Version: 7.1.0.0.alpha0+
Build ID: 12bfedfac3b141fe6c91b0e5ae5b3fb2ba817c48
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

and

Version: 5.2.0.0.alpha0+
Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 4.19; Render: default; 

Locale: en-US (en_US.UTF-8)
Comment 2 NISZ LibreOffice Team 2020-12-02 11:34:27 UTC
Created attachment 167754 [details]
The example file in Writer 7.2master

The black highlight comes from the paragraph style "Обычный".
Comment 3 NISZ LibreOffice Team 2020-12-02 11:55:01 UTC
Created attachment 167756 [details]
In 6.0 and 6.1

Side note: the font color was black in 6.0 but since 6.1 it is white. Worth another report.
Comment 4 Justin L 2020-12-02 13:58:14 UTC
This should be fixed in 7.2 master courtesy of bug 137683 and others.
https://cgit.freedesktop.org/libreoffice/core/log/?qt=grep&q=Char+highlight%3A

The big problem with this particular document and the steps specified is that COL_AUTO was not being exported or imported.
Comment 5 Justin L 2020-12-02 14:02:51 UTC
(In reply to NISZ LibreOffice Team from comment #3)
> Side note: the font color was black in 6.0 but since 6.1 it is white. Worth
> another report.
I'm not sure this is worth a report. Highlighting is a strange beast in Microsoft world, and we don't need to dirty our feet in every little fiasco related to it.

COL_AUTO is doing what NORMALLY ought to be done - if the background is very dark, then the text will become light, and vice versa. So personally I would just leave this one alone.
Comment 6 Justin L 2020-12-02 14:24:10 UTC
Oh joy - now if you ONLY clear the highlight, it becomes white one white. But that is an older problem.  On export, the character style changes w:color from auto to FFFFFF - so that's why, since font colour is no longer auto.
Comment 7 QA Administrators 2024-04-15 03:15:27 UTC Comment hidden (obsolete)
Comment 8 Timur 2025-01-29 10:48:01 UTC
IDK why this stayed open. Original issue is fixed.