aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2011-11-19 12:28:33 +0000
committerYegor Kozlov <yegor@apache.org>2011-11-19 12:28:33 +0000
commitef049ea258d029ea6730dfcea032993bdfe8aa65 (patch)
tree5de3697e4ff847cf951fbabdc025a1158e3cd7a5 /src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
parente7ba4f6f8c790a319144092f2d2d8a3623f43dd6 (diff)
downloadpoi-ef049ea258d029ea6730dfcea032993bdfe8aa65.tar.gz
poi-ef049ea258d029ea6730dfcea032993bdfe8aa65.zip
Bugzilla 52209: fixed inserting multiple pictures to a group or slide in XSLF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1203969 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java')
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
index efec667a93..9de0c7493a 100644
--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
+++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
@@ -338,7 +338,7 @@ public class XMLSlideShow extends POIXMLDocument {
public int addPicture(byte[] pictureData, int format) {
getAllPictures();
- int imageNumber = getPackage().getPartsByName(Pattern.compile("/ppt/media/.*?")).size() + 1;
+ int imageNumber = _pictures.size() + 1;
XSLFPictureData img = (XSLFPictureData) createRelationship(
XSLFPictureData.RELATIONS[format], XSLFFactory.getInstance(), imageNumber, true);
_pictures.add(img);