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

--- Comment #3 from PJ Fanning <fannin...@yahoo.com> ---
Comment on attachment 36155
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36155
change in removePictureRelation function and testcase

Would it be better if the new code threw an exception if it isn't safe to
remove the picture relation?

+        if (numberOfRelations <= 1) {
+            removeRelation(pictureShape.getBlipId());
+        } else {
+            throw new IllegalStateException("Cannot remove picture relation
because there are other references to the picture");
+        }

-- 
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