Bug 163920 - Invalid attribute 'sub-bar' in saving OfPie chart to ODF strict
Summary: Invalid attribute 'sub-bar' in saving OfPie chart to ODF strict
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-16 00:31 UTC by Regina Henschel
Modified: 2024-12-11 16:39 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Example with 'Of-Pie' chart (21.39 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-11-16 00:31 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2024-11-16 00:31:20 UTC
Created attachment 197641 [details]
Example with 'Of-Pie' chart

Open attached document. It has a chart of type 'Of-Pie' with sub-type 'Bar-of-pie Chart'.

Set LibreOffice to save to a strict (that is not extended) ODF version.

Save the document.

Unpack the saved document and examine the content.xml file of 'Object 1', that is the chart object.

Error: The element <chart:chart> has an attribute 'sub-bar="true" '. Such attribute does not exist in ODF.

The error is in line #1292 in xmloff/source/chart/SchXMLExport.cxx where an attribute in loext namespace is written without check whether the current ODF version is really an extended version. How to check the current ODF version can be seen in line #1258.

But I have principle concerns about the way, the new chart types are handled in regard to ODF.
Comment 1 Regina Henschel 2024-11-16 11:14:46 UTC
My concerns are listed in bug 163921.