Bug 163157 - Template change isn't applied to presentation
Summary: Template change isn't applied to presentation
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: All All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Templates
  Show dependency treegraph
 
Reported: 2024-09-25 19:08 UTC by Gerhard Weydt
Modified: 2026-01-02 18:40 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
test presentation (46.33 KB, application/vnd.oasis.opendocument.presentation)
2024-09-25 19:08 UTC, Gerhard Weydt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Weydt 2024-09-25 19:08:50 UTC
Created attachment 196694 [details]
test presentation

When a presentation template is changed, opening presentations based on this template causes a prompt, asking whether the changes of the template shall be applied to the presentation. This does not work correctly any longer.

Steps to reproduce:
- Downlaod and open test presentation attached.
- File -> Templates -> Save as template
- File -> New -> Templates and choose template just saved (you need perhaps select        the filter "Presentations")
- save the presentation created
- File ->Templates -> Edit template and choose the template
- View -> Master Slide and edit the template, e.g. delte one of the bullets
- Save
- open the presentation created above
- the promt "Confirmation" appears: select "Update Styles"
Result: the background colouring disappears, but the bullet deleted in the template is still there.

The same seems to happen in Draw and Calc.
Comment 1 Buovjaga 2025-01-07 15:05:01 UTC
Bibisected with linux-64-7.5 to daab698b346e5e40b67f1e15c796c4e399ccaf8a
sd: replace hardcoded table styles with xml file

This is a bit strange as there is no table in attachment 196694 [details]

Regarding what the commit message says, I see some style:paragraph-properties and loext:graphic-properties elements in content.xml and styles.xml, but not related to cells as there are no tables.
Comment 2 Timur 2025-04-04 08:37:05 UTC
Importanbt "Template Changer" extension at https://extensions.libreoffice.org/en/extensions/show/27416 says: Due to a problem in LibO (Bug 163157) this works only for writer documents.
So this seems like Major-High.
Comment 3 gacuxz 2026-01-02 11:57:21 UTC Comment hidden (off-topic)
Comment 4 gacuxz 2026-01-02 12:30:51 UTC Comment hidden (off-topic)
Comment 5 gacuxz 2026-01-02 18:40:48 UTC
I have the similar (possibly the same) problem on v25.8.4.2 and some simple steps to reproduce:

- In an empty Impress document go to the Master slide.
- Select 'Title Area for Autolayouts' frame inside the slide and change it's font and color (ex. to red) editing 'Presentation Styles -> Title'. Save file as a template
- Create New Document from this template using 'File -> New -> Template', edit the title to some text and save the file.
- Edit the template 'File -> Templates -> Edit template' by changing font and color once again (to ex. green) and just press 'Save -> Close'
- Opening the New Document asks me if I want to update the styles and after pressing 'Update Styles' the 'Title' resets the font to default and color to black.

Some more testing:
Tried doing the same using different menus (like templates startup window), but this always performed the same. Tried creating more master slides in a template, and more normal slides in a document - this brought even more confusion: it looks like the style of the first frame always resets to default, while other slides keeps it’s style but is not updated from a template.

User in 'Ask' forum after auditing XML pointed out that this may be a bug:
https://ask.libreoffice.org/t/unclear-documentation-regarding-master-slides-layouts-and-templates/98925/11