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

            Bug ID: 62736
           Summary: [PATCH] Relations on XSLFPictureShape are removed
                    unconditionally
           Product: POI
           Version: 4.0.x-dev
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLF
          Assignee: dev@poi.apache.org
          Reporter: bmate...@gmail.com
  Target Milestone: ---

It is only safe to remove a relation of a PictureShape if there are no more
relations to that media on its slide.

I created a small example pptx where I copy pasted an image on a slide and
removed only one of them using poi. The current implementation removes the
relation and the document gets corrupted because of the invalid link.

The proposed fix is to iterate on the pictures of the slide and only remove the
relation if that is the only one.

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

Reply via email to