Bug 154369 - FILEOPEN DOCX Numbering loses its parastyle-assigned color b/c of applied charstyle
Summary: FILEOPEN DOCX Numbering loses its parastyle-assigned color b/c of applied cha...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Paragraph OOXML-Doc-Themes
  Show dependency treegraph
 
Reported: 2023-03-24 17:22 UTC by Gabor Kelemen (allotropia)
Modified: 2023-11-22 11:01 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word (26.80 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-03-24 17:22 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the document in Word and Writer (112.71 KB, image/png)
2023-03-24 17:22 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-03-24 17:22:05 UTC
Created attachment 186193 [details]
Example file from Word

Attached document contains a few paragraphs formatted with Heading 1 style, font color set as Accent 1 from theme.
The numbering A and B does not show this color in Writer, but the default black.

1. Open attached document
-> the A and B numberings are not green.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b5c3a7502f7ff6ccf0f829c1f3a2ba50b8584c41
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: de-DE
Calc: threaded

This was good in 7.0, broke in 7.1 with:

https://git.libreoffice.org/core/+/c77b9c349f0a48392d8cb7a49532844b2cafb5ba

author	Vasily Melenchuk <vasily.melenchuk@cib.de>	Tue Aug 18 17:59:26 2020 +0200
committer	Michael Stahl <michael.stahl@cib.de>	Fri Aug 28 17:30:57 2020 +0200
tree 447a21904d3a18c18c8959b132409cc8ea05cf6f
parent bb6668bc596e62474ed2e1e923d9c9cd51685258 [diff]

tdf#131801: sw: support of style references in ListAutoFormat
Comment 1 Gabor Kelemen (allotropia) 2023-03-24 17:22:30 UTC
Created attachment 186194 [details]
Screenshot of the document in Word and Writer
Comment 2 Dieter 2023-04-07 15:49:55 UTC
I confirm it with

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1e9f4de320f67d1218c710bcee1969a2324c6888
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-GB
Calc: CL threaded
Comment 3 Justin L 2023-06-02 12:36:52 UTC
Here is something a bit bizarre. in LO, select the entire paragraph and change the font colour to red. Now the numbering will show up as green.
Comment 4 Oliver Specht (CIB) 2023-11-22 11:01:18 UTC
In checkApplyParagraphMarkFormatToNumbering()  (txtfld.cxx) the attributes from the registered character format are all copied and applied in SwFont::SetDiffFnt()
It should only apply items with a state > SfxItemState::DEFAULT