TruTruMaster commented on PR #1599:
URL: https://github.com/apache/poi/pull/1599#issuecomment-7240511249

   Thanks for the review. All four are in ce21f6f:
   
   - **Dangling or non-picture `svgBlip`:** before importing, 
`importEmbeddedBlips` checks that the `r:embed` resolves to an 
`XSLFPictureData` of the source sheet. If it doesn't, the extension is dropped 
with a warning and the raster picture is copied as before. The same check 
covers `a14:imgLayer`. New test `testImportSvgImageWithInvalidReference` 
(parameterized: an id with no relationship, and the id of the slide layout 
relation). On the previous head it fails with the `NullPointerException` and 
the `IllegalStateException` you described.
   - **More than one match:** the helper loops over all matches.
   - **Stream:** the SVG is read with try-with-resources.
   - **Round trip:** both the copy into `ppt2` and the same-slideshow copy are 
written and read back, and the test checks that the SVG keeps type `SVG` and 
content type `image/svg+xml`.
   
   All 280 `org.apache.poi.xslf` tests pass.
   
   About `removePictureRelation` releasing only the main blip: agreed, that's 
separate. I can open a follow-up for it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to