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

--- Comment #14 from Mark Murphy <[email protected]> ---
I believe the issue is in XWPFRun.addPicture(...)

This block of code:

            CTBlipFillProperties blipFill = pic.addNewBlipFill();
            CTBlip blip = blipFill.addNewBlip();
            blip.setEmbed(parent.getDocument().getRelationId(picData));
            blipFill.addNewStretch().addNewFillRect();

retrieves the main document rather than the document part containing the image,
and attempts to retrieve the relation id from that. This works when the image
is in the main document, but not when the image is in another part such as a
header or footer. In fact, the missing element in the header and footer is the
relation ID. I believe I can write some unit tests to prove this out.

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