Bug 157221 - "Use Background" area fill does not work if slide background uses "None"
Summary: "Use Background" area fill does not work if slide background uses "None"
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: implementationError
Depends on:
Blocks: Area-Fill-Tab
  Show dependency treegraph
 
Reported: 2023-09-13 08:37 UTC by Stéphane Guillou (stragu)
Modified: 2023-09-14 06:41 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
sample PPTX (24.57 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2023-09-13 08:37 UTC, Stéphane Guillou (stragu)
Details
comparison of sample PPTX between LO (left) and MS365 (right) (107.54 KB, image/png)
2023-09-13 12:22 UTC, Stéphane Guillou (stragu)
Details
screenshot comparing using same setting as slide (gradient) to "Use background" (24.29 KB, image/png)
2023-09-14 06:27 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2023-09-13 08:37:51 UTC
Created attachment 189543 [details]
sample PPTX

Steps:
1. Open attached PPTX
2. Compare the two slides

Result:
The first slide's top shape uses "use background" as a fill but still shows the shape behind it.

Expected:
The shape is filled with the colour used in Tools > Options > LibreOffice > Application Colours > Document Background.
The same file opened in MS365 will fill the shape with the same colour as the default background.

Note: this is not specific to PPTX. ODP behaves the same, but I attached a PPTX to make it easy to test in MS Office / MS365.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cea165a3ebdb5f2a2b172004ff1b3848f303d78a
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Already the case in 7.4.0.3, so calling it an implementation error.
Comment 1 Stéphane Guillou (stragu) 2023-09-13 12:22:17 UTC
Created attachment 189550 [details]
comparison of sample PPTX between LO (left) and MS365 (right)
Comment 2 Regina Henschel 2023-09-13 22:18:52 UTC
I think, that is not a problem with the feature "use background" but with the background setting of the master slide. The master slide has set "None" and so "use background" uses "None", which means it becomes transparent.

PowerPoint does not allow setting "None" as fill for a master slide. So the import should set the background of the master page to the background color from the associated theme.
Comment 3 Stéphane Guillou (stragu) 2023-09-14 06:27:38 UTC
Created attachment 189563 [details]
screenshot comparing using same setting as slide (gradient) to "Use background"

(In reply to Regina Henschel from comment #2)
> I think, that is not a problem with the feature "use background" but with
> the background setting of the master slide. The master slide has set "None"
> and so "use background" uses "None", which means it becomes transparent.

My understanding is that the feature is not supposed to be "use same setting as slide", but instead be "a kind of 'tunnel' that looks through everything all the way to the slide background" (sorry for the lack of a better description :) )

This is best illustrated by using a gradient: if the slide and shape use the same gradient, vs if the shape uses "use background".

> PowerPoint does not allow setting "None" as fill for a master slide. So the
> import should set the background of the master page to the background color
> from the associated theme.

The same is seen with ODP.
Or maybe I misunderstood what you meant?
Comment 4 Stéphane Guillou (stragu) 2023-09-14 06:41:02 UTC
Samuel, Armin and Michael: copying you in in case you've got some input, given that you all participated in getting that implemented.