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)
7.2.2.2 release
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: 2026-01-01 10:32 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.
Comment 3 QA Administrators 2025-12-29 03:21:11 UTC Comment hidden (obsolete)
Comment 4 Laurent Balland 2026-01-01 10:32:12 UTC
Reproduced with 
- Version: 26.2.0.0.beta1 (X86_64)
Build ID: 620(Build:0)
CPU threads: 8; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL threaded
- Version: 25.8.4.2 (X86_64)
Build ID: 290daaa01b999472f0c7a3890eb6a550fd74c6df
CPU threads: 8; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL threaded
- Version: 7.2.2.1 (x64) / LibreOffice Community
Build ID: 0e408af0b27894d652a87aa5f21fe17bf058124c
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded

Same bug with AOO 4.1.10