Bug 167811 - Switching between custom slide templates makes their background disappear
Summary: Switching between custom slide templates makes their background disappear
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: PPTX-MasterSlide
  Show dependency treegraph
 
Reported: 2025-08-05 10:23 UTC by Gabor Kelemen (allotropia)
Modified: 2025-08-06 11:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example custom Impress template (59.50 KB, application/vnd.oasis.opendocument.presentation-template)
2025-08-05 10:23 UTC, Gabor Kelemen (allotropia)
Details
Second example template file (2.49 MB, application/vnd.oasis.opendocument.presentation-template)
2025-08-05 10:24 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2025-08-05 10:23:51 UTC
Created attachment 202179 [details]
Example custom Impress template

I made the attached two custom template files. When I set their first slide on a new slide with the Master Slides sidebar, the background image is replaced with a lightblue fill after two exchanges.

1. Download the attached template files into a directory (with the default templates this does not seem to happen)
2. In Options -> Paths -> Template set this target directory as a template source, restart LO
3. Open a new Impress document
4. In the Master Slides sidebar look at the Available to Use section
5. Click on one of the new slide masters to set it on the current slide
6. Click on the other new slide master to set it again
5. Click on the first slide master again
-> background becomes light blue

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7f4868348c14b305fcd75744e1e3544d0d3a5d61
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

seems to have started in 5.2, commit 

https://cgit.freedesktop.org/libreoffice/core/commit/?id=c5ab14e2bca0cc4fabd25b27f078a1c38fda4fa7

author	Caolán McNamara <caolanm@redhat.com>	2016-05-24 20:44:11 +0100
committer	Caolán McNamara <caolanm@redhat.com>	2016-05-24 20:57:57 +0100
commit c5ab14e2bca0cc4fabd25b27f078a1c38fda4fa7 (patch)

Resolves: tdf#100024 CRASH when setting a background image
Comment 1 Gabor Kelemen (allotropia) 2025-08-05 10:24:17 UTC
Created attachment 202180 [details]
Second example template file
Comment 2 Thorsten Behrens (allotropia) 2025-08-06 11:39:13 UTC
Seen in recent master