Bug 158496 - XML: style:display-name is not independent from style:name
Summary: XML: style:display-name is not independent from style:name
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ImpressDraw-Styles
  Show dependency treegraph
 
Reported: 2023-12-03 09:31 UTC by Laurent Balland
Modified: 2023-12-29 23:42 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Broken template (14.71 KB, application/vnd.oasis.opendocument.presentation-template)
2023-12-03 09:36 UTC, Laurent Balland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Balland 2023-12-03 09:31:16 UTC
Description:
If you modify style:display-name in styles.xml, then the inheritance is lost

Steps to Reproduce:
1. Find a template using a font different from Liberation Sans, such as bundled template DNA.otp, which uses Liberation Serif for Title
2. Unzip DNA.otp
3. In styles.xml, add an attribute style:display-name="Other name" after <style:master-page style-name="DNA"
4. Save, zip and create a new DNA2.otp template
5. Open DNA2.otp

Actual Results:
Title use Liberation Sans font

Expected Results:
Title should use the font define in DNA-Title style


Reproducible: Always


User Profile Reset: No

Additional Info:
There is no bug if display name is simply a conversion of the name of the style (like what is done using UI: special character such as space is replaced by a code).
However, ODF does not specify that display name should follow the name. See section 19.476
https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part3-schema/OpenDocument-v1.3-os-part3-schema.html#__RefHeading__1417898_253892949
Comment 1 Laurent Balland 2023-12-03 09:36:28 UTC
Created attachment 191200 [details]
Broken template

Font of the title is Liberation Sans, whereas it should be Liberation Serif according to its style. The problem is resolved if you remove style:display-name attribute in styles.xml.
Comment 2 Regina Henschel 2023-12-03 18:02:30 UTC
In debug build, the xAttrList parameter does not include the style:display-name attribute although the following code reads as if such attribute is expected.