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

--- Comment #3 from PJ Fanning <[email protected]> ---
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to