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
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.
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.