deprecation fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1744008 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1f862981e2
commit
73108582a0
@ -229,7 +229,7 @@ public final class XSSFDrawing extends POIXMLDocumentPart implements Drawing {
|
||||
protected PackageRelationship addPictureReference(int pictureIndex){
|
||||
XSSFWorkbook wb = (XSSFWorkbook)getParent().getParent();
|
||||
XSSFPictureData data = wb.getAllPictures().get(pictureIndex);
|
||||
XSSFPictureData pic = new XSSFPictureData(data.getPackagePart(), null);
|
||||
XSSFPictureData pic = new XSSFPictureData(data.getPackagePart());
|
||||
RelationPart rp = addRelation(null, XSSFRelation.IMAGES, pic);
|
||||
return rp.getRelationship();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user