Bug 134325 - EDITING: Inserting gallery clip art outside of a layout box creates a linked image
Summary: EDITING: Inserting gallery clip art outside of a layout box creates a linked ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.4.7.2 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-26 16:06 UTC by Chris Cameron
Modified: 2021-06-03 15:25 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Start slide (114.99 KB, image/png)
2020-06-26 16:09 UTC, Chris Cameron
Details
The goal slide, for reproducing the bug (245.97 KB, image/png)
2020-06-26 16:10 UTC, Chris Cameron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Cameron 2020-06-26 16:06:32 UTC
Description:
I've failed to find the correct name, but the "layout box" I reference are the dotted boxes that are created for you when you select different slide layouts.

Inserting gallery clipart on an empty slide creates a relative link to that clipart in the LO installation. Moving a saved presentation deeper into the directory structure, or on to a computer with LO installed, will break the gallery image.

This behaviour does not occur if the image is added to a slide layout box.

Steps to Reproduce:
(1) In Impress, create a new presentation. Create a slide layout where one half of the slide is a layout box, and the other half is not. (I'll attach a screenshot)

(2) Open the Gallery

(3) Drag any item from the gallery, and drop it on to the layout box

(4) Drag a second item from the gallery (could be the same image), and drop it on the side of the slide *without* the layout box.

(5) Save your presentation.




Actual Results:
You now have one linked, and one embedded image. How can you be sure? Two ways to confirm:
(1) In the directory where you've saved this file, create a new directory. Move the saved presentation to this directory and open it in LibreOffice. The linked image should be broken.

(2) Unzip the .odp file and look at the 'content.xml' file. You'll see that one of the "<draw:image xlink:href=" tags is relative to the LibreOffice application installation.

Expected Results:
Both gallery images should be embedded in the presentation; neither should be linked.

The problem, to be clear, is that you can't move your presentation any more.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
* I was unable to recreate this problem on Windows 10, LO 6.4.4.2
* Behaviour occurs in safe mode


Version: 6.4.4.2
Build ID: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
CPU threads: 8; OS: Mac OS X 10.13.6; UI render: GL; VCL: osx; 
Locale: en-CA (en_CA.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 Chris Cameron 2020-06-26 16:09:47 UTC
Created attachment 162431 [details]
Start slide

This shows what I mean by a slide with a section for a "layout box" and an "empty" section.
Comment 2 Chris Cameron 2020-06-26 16:10:44 UTC
Created attachment 162432 [details]
The goal slide, for reproducing the bug

Clipart on the right was placed over the layout box. Clipart on the left was placed on an empty spot.
Comment 3 Chris Cameron 2020-06-26 16:26:30 UTC
I am unable to reproduce this using LO 7.0.0.0.beta2 on macOS. So it seems to have been fixed somewhere along the way.
Comment 4 Alex Thurgood 2020-09-16 10:07:44 UTC
No repro with 

Version: 7.0.1.2
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 4; OS: Mac OS X 10.15.6; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded


both gallery images are preserved when I reopen the ODP after moving the file outside of its original saved folder.
Comment 5 Alex Thurgood 2020-09-16 10:17:12 UTC
Can't drag and drop a gallery image onto an image link contained within a bounding box using
Version : 6.4.6.2
Build ID : 0ce51a4fd21bff07a5c061082cc82c5ed232f115
Threads CPU : 4; OS : Mac OS X 10.15.6; UI Render : par défaut; VCL: osx; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded

All I can do here is either select an image via the Finder, or, if I drag and drop from the gallery, watch the image get placed outside of the bounding box.