Bug 156143

Summary: The ODF attribute draw:fill is missing but the color is still shown (pls insert the attribute)
Product: LibreOffice Reporter: Svante Schubert <svante.schubert>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: michael.stahl
Priority: medium    
Version: 7.5.4.2 release   
Hardware: All   
OS: All   
Whiteboard: odf
Crash report or crash signature: Regression By:
Attachments: Red Square

Description Svante Schubert 2023-07-03 13:36:58 UTC
In the styles.xml of the ODF XML the background color attribute @draw:fill-color is being used as default style for the graphics family - for instance the default fill for all frames, see https://bugs.documentfoundation.org/attachment.cgi?id=120367 (bug 95660).

Its usage can visiualy confirmed by testing the ODT in LO Writer.

Unfortunately, the ODF spec states:
"It is used only if the draw:fill 20.118 attribute has one of the values solid or hatch.", see https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part3-schema/OpenDocument-v1.3-os-part3-schema.html#property-draw_fill-color

But @draw:fill color is misssing, while the color is shown. 

Please add the attribute @draw:fill!
Comment 1 Svante Schubert 2023-07-03 13:38:52 UTC
Created attachment 188181 [details]
Red Square

Added a rectangle and changed background color to red.
The draw:fill attribute is missing while color is shown.