You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2017/09/17 22:54:07 UTC

[Bug 60499] Deleting a picture that is used twice on a slide corrupt the slide

https://bz.apache.org/bugzilla/show_bug.cgi?id=60499

Andreas Beeker <ki...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Andreas Beeker <ki...@apache.org> ---
I regard the original issue as invalid - if you have multiple references to the
same part (e.g. a png image), you would have each time a new relationship -
i.e. relationships aren't reused. I have to admit, that I haven't search the
ECMA spec for this definition, but if you do the same manually via MS/Libre
Office you actually get not only a copied relationship but also a second media
part.

After I adopted your sample to this handling, the resulting pptx was still
corrupt as the POIXMLDocumentPart.removeRelation(POIXMLDocumentPart) method
didn't handle multiple references correct.

This was fixed via r1808661

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org