Bug 83882 - EDITING: image replacement drops animations and undo corrupts them
Summary: EDITING: image replacement drops animations and undo corrupts them
Status: RESOLVED DUPLICATE of bug 119514
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.0.6.2 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2014-09-15 11:57 UTC by ravingdesi
Modified: 2018-08-27 09:40 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ravingdesi 2014-09-15 11:57:29 UTC
Problem description: 
When I convert an .svg (e.g. to curve) and then undo this step, the animation associated with this object is corrupted. A "-1" appears in the animation list instead.


Steps to reproduce:
1. Download https://dl.dropboxusercontent.com/u/17406199/bugtmp/Bug15.odp
2. Open the animations tab to see that the .svg object is associated to the animation
3. Click right and choose "Convert"->"To curve"
4. Undo (ctrl+z)
5. Look at the animations tab again. The animation is now shown as "-1" and is not associated with this object anymore

Current behavior:
Currently, after undoing the animation is not associated with the object anymore:
https://dl.dropboxusercontent.com/u/17406199/bugtmp/Bug15_2.png

Expected behavior:
Animation should be working like before:
https://dl.dropboxusercontent.com/u/17406199/bugtmp/Bug15_1.png
Operating System: Ubuntu
Version: 4.3.1.2 release
Comment 1 Owen Genat (retired) 2014-09-15 12:24:15 UTC
Thanks for the clear instructions. Confirmed under GNU/Linux using:

- v4.0.6.2 Build ID: 2e2573268451a50806fcd60ae2d9fe01dd0ce24
- v4.1.6.2 Build ID: 40ff705089295be5be0aae9b15123f687c05b0a
- v4.2.6.3 Build ID: 3fd416d4c6db7d3204c17ce57a1d70f6e531ee21
- v4.3.1.2 Build ID: 958349dc3b25111dbca392fbc281a05559ef6848
- v4.4.0.0.alpha0+ Build ID: 037d03b9facb414ba6be01fa6ee92fc7ca89f70c TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2014-09-11_00:32:52

In all cases behaviour is as described. Also tested using:

- v3.5.7.2 Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b

Under this version "Blank graphic object 1" is displayed in place of "SVG". There is no convert to curve (only bitmap). After this conversion and undo "Metafile 1" is displayed instead of "-1". Possibly the same problem even in this version.

Status set to NEW. Version set to 4.0.6.2 but may be earlier.
Comment 2 tommy27 2016-04-16 07:23:24 UTC Comment hidden (obsolete)
Comment 3 public 2016-04-19 20:23:13 UTC
The bug is still present in 
Version: 5.0.5.2
Build ID: 5.0.5.2 Arch Linux build-3

Interestingly, the animation is lost entirely after converting the object. Only after undoing, it reappears with "-1".
I don't know if this is new or already happened in older version. However, I think the animation should survive the conversion and not diappear in the first place.
Comment 4 public 2016-04-19 20:29:56 UTC
*** Bug 83928 has been marked as a duplicate of this bug. ***
Comment 5 public 2016-04-19 20:34:38 UTC
As observed in bug 83882, essentially every operation that replaces the image ("Replace", "Compress", "Convert", ...) results in the same wrong behavior.

This happens even for other images, not only for SVGs. Again, I cannot tell if the problem for other images than SVGs is new or not.
Comment 6 QA Administrators 2017-05-22 13:23:14 UTC Comment hidden (obsolete)
Comment 7 public 2017-05-23 08:56:56 UTC
This bug is still present in:

Version: 5.3.3.2
Build ID: 5.3.3-1
CPU Threads: 8; OS Version: Linux 4.10; UI Render: GL; VCL: gtk3; Layout Engine: new; 
Locale: de-DE (en_US.UTF-8); Calc: single

(on Arch Linux)
Comment 8 QA Administrators 2018-05-24 02:45:12 UTC Comment hidden (obsolete)
Comment 9 public 2018-05-24 07:58:34 UTC
The bug is still present in

Version: 6.0.4.2
Build ID: 6.0.4-1

You don't need to download the file in the description (which is not accessible anymore). Just open a new file, add an SVG, and add an animation to it, and then follow the steps to reproduce.
Comment 10 Xisco Faulí 2018-08-27 09:40:37 UTC
Regression introduced by https://cgit.freedesktop.org/libreoffice/core/commit/?id=57082b1243e86694b72c5e4fad013bf207bfe81a, which is the same as in bug 119514,
closing as RESOLVED DUPLICATED

*** This bug has been marked as a duplicate of bug 119514 ***