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: NEW
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:
Keywords:
Depends on:
Blocks: Chart
  Show dependency treegraph
 
Reported: 2024-11-16 00:31 UTC by Regina Henschel
Modified: 2026-02-04 19:09 UTC (History)
2 users (show)

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.
Comment 2 Buovjaga 2026-02-04 19:09:32 UTC
Set ODF format version to 1.4 in Tools - Options - Load/Save - General, saved and unzipped. I confirm that Object 1/content.xml has sub-bar="true" attribute in the chart:chart element.

Arch Linux 64-bit
Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: 19f943f13485918d35597be1dcae48c0fbecd0e3
CPU threads: 8; OS: Linux 6.18; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 31 January 2026