]> source.dussan.org Git - poi.git/commitdiff
deprecation fix
authorAndreas Beeker <kiwiwings@apache.org>
Mon, 16 May 2016 10:09:52 +0000 (10:09 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Mon, 16 May 2016 10:09:52 +0000 (10:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1744008 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFDrawing.java

index 27ef139b0e4a2d850fcb51146478550aee3f140d..8b70d712ad0d0b88b718254e1e7f38d3edb4dca4 100644 (file)
@@ -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();
     }