Bug 145636 - Render empty shapes and objects to show and export the color background
Summary: Render empty shapes and objects to show and export the color background
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.1.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OLE-Objects
  Show dependency treegraph
 
Reported: 2021-11-11 22:09 UTC by loic_dupont
Modified: 2023-08-18 04:53 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
the PPT file that generate the issue (11.25 MB, application/vnd.ms-powerpoint)
2021-11-11 22:12 UTC, loic_dupont
Details
The PDF generated (9.43 MB, application/pdf)
2021-11-11 22:22 UTC, loic_dupont
Details
screenshoot to show what i see in edit (left) and what i see in slideshow/PDF (right) (146.26 KB, image/jpeg)
2021-11-11 22:35 UTC, loic_dupont
Details

Note You need to log in before you can comment on or make changes to this bug.
Description loic_dupont 2021-11-11 22:09:52 UTC
Description:
Loading an " <official french gouvernement affiliate PIX ORGANISATION>'s Micro$oft .PPT file", the colored background of the FIRST and LAST page of the presentation (a big full page colored image) is available in edition mode but in NOT shown in SLIDESHOW mode, and is NOT exported in "PDF direct export". 

Libre Office version (direct paste from 'Copy' button) : 
Version: 7.1.6.2 (x64) / LibreOffice Community
Build ID: 0e133318fcee89abacd6a7d077e292f1145735c3
CPU threads: 24; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL

Steps to Reproduce:
1.download "Diaporama college21-22.ppt" from https://cloud.pix.fr/s/rm62qFQ2weEB68b 
2.open it in Impress. Observe FIRST and LAST slide with color background.
3.lauch SHOW mode. Observe the MISSING background in first and last page. 
4.Exit SHOW mode.
5.EXPORT in PDF the file. Observe in the created PDF the MISSING background in first and last page.

Actual Results:
MISSING background in first and last page in SHOW mode and EXPORT PDF

Expected Results:
to see the background image


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
OpenGL :
Rendereur: GeForce RTX 2080 SUPER/PCIe/SSE2
Fournisseur: NVIDIA Corporation
Version:4.6.0 NVIDIA 457.51 
Version GLSL: 4.60 NVIDIA                   


Max. taille texture 32768 x 32768
Max. vertex tex. image units: 32
Max. texture image unit?s 32
Max Geometry Texture Units: 32
Max. anisotropie 16
Taille Max. Vue 32768 x 32768
Distances maximales des clips: 8
Max. ?chantillons 16

(...)

Extensions du noyau OpenGL
v3.0 (100 % - 23/23)v3.1 (100 % - 7/7)v3.2 (100 % - 10/10)v3.3 (100 % - 10/10)v4.0 (100 % - 14/14)v4.1 (100 % - 7/7)v4.2 (100 % - 13/13)v4.3 (100 % - 20/20)v4.4 (100 % - 10/10)v4.5 (100 % - 11/11)v4.6 (100 % - 11/11)vARB 2015 (100 % - 12/12)V?rification de la version de pilotes OpenGL (Actuelle: 0, Derni?re: ):
Derni?re version des pilotes graphiques d?t?ct?
Selon la base de donn?es, vous avez la derni?re version des pilotes pour votre carte graphique. (ENGLISH APPROXIMATE TRANSLATION : my drivers for Graphic Card are up to date)
Comment 1 loic_dupont 2021-11-11 22:12:38 UTC
Created attachment 176198 [details]
the PPT file that generate the issue
Comment 2 loic_dupont 2021-11-11 22:22:43 UTC
Created attachment 176199 [details]
The PDF generated
Comment 3 loic_dupont 2021-11-11 22:35:26 UTC
Created attachment 176200 [details]
screenshoot to show what i see in edit (left) and what i see in slideshow/PDF (right)
Comment 4 Regina Henschel 2021-11-12 21:11:26 UTC
The gradient is the fill of an empty OLE object shape, it is a placeholder shape. And as empty OLE object shapes are neither shown nor printed, you do not get the gradient.

The special handling of empty OLE object shapes is scattered over the code (search for *placeholder*) and would require much caution if the decision will be to change it.

I would not like to change our code to fix a design error of the author.

For to "repair" the file: Open master view, go to first master slide and click on the left rectangle which has a gradient. From context menu chose item 'Area' and there click 'Add' to add the gradient to the list of gradients. Then go to third master slide (which is master for the start and for the end slide), from context menu chose item 'Slide properties'. Then select the newly inserted gradient for the slide background.
Comment 5 loic_dupont 2022-09-08 20:30:43 UTC
I completely understand your point of view. ...As a developer.

On the other hand, if we put ourselves from the point of view of quality assurance, I say to myself that if the lambda end user can do it, it is because the initial code (...on the microsoft side?!) allows it. 

So we *should* have to handle it properly? 

What do you think about putting it in a "future improvement" request?  

This is undoubtedly my perfectionist side talking, but I think it's a bad idea to leave a potential bug. After that, I ABSOLUTELY do not have the skills to improve the problem, so I will not be able to do it myself #/me==Sad.

Translated with www.DeepL.com/Translator (free version)
Comment 6 Stéphane Guillou (stragu) 2022-12-22 00:54:50 UTC
This is easily reproducible only using LibreOffice and ODF:

1. Open Impress
2. Don't pick a template
3. Right-click on text box with placeholder text "click to add text"
4. Area > Color > pick a colour > OK

Results:
Placeholder text box colour is not shown in the slide sorter, or in slideshow mode, or on PDF export.
Typing text in the placeholder makes it visible.

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

UX team, should this be something to improve or is it a WONTFIX?
Comment 7 Heiko Tietze 2023-01-06 10:33:43 UTC
(In reply to Regina Henschel from comment #4)
> And as empty (OLE) object shapes are neither shown nor printed...

Why not render it?
Comment 8 Heiko Tietze 2023-01-09 09:52:35 UTC
Obviously we have to render "empty" objects too. In fact, if any attribute is set it wont be empty.