TruTruMaster opened a new pull request, #1599: URL: https://github.com/apache/poi/pull/1599
Fixes #927 (the `TODO: check for SVG copying` in `XSLFPictureShape.copy()`). `copy()` imports the relation of the main blip and of the `a14:imgLayer` extension, but the `r:embed` of the `asvg:svgBlip` extension kept the relation id of the source slide. After `importContent` the copied picture lost its SVG image (`getSvgImage()` returned `null`), or it pointed to an unrelated part of the target slide that happened to use the same id. The `svgBlip` extension is now imported the same way as the image layer. Both go through a small helper, `importEmbeddedBlip`. **Test:** `TestXSLFPictureShape.testImportSvgImage` copies a picture with an SVG image into another slideshow and into the same one, then writes the copy out and reads it back. It fails without the change. All the `org.apache.poi.xslf` tests pass (278). -- 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]
