poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiwiwi...@apache.org
Subject svn commit: r1714288 - /poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java
Date Sat, 14 Nov 2015 02:41:48 GMT
Author: kiwiwings
Date: Sat Nov 14 02:41:48 2015
New Revision: 1714288

URL: http://svn.apache.org/viewvc?rev=1714288&view=rev
Log:
Add default XmlOptions to XMLBeans parsing

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java?rev=1714288&r1=1714287&r2=1714288&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java Sat Nov 14
02:41:48 2015
@@ -21,6 +21,7 @@ package org.apache.poi.xslf.usermodel;
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 
+import org.apache.poi.POIXMLDocumentPart;
 import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
 import org.apache.poi.openxml4j.opc.OPCPackage;
 import org.apache.poi.openxml4j.opc.PackagePart;
@@ -48,7 +49,7 @@ public class XSLFMetroShape {
         try {
             pkg = OPCPackage.open(new ByteArrayInputStream(metroBytes));
             PackagePart shapePart = pkg.getPart(shapePN);
-            CTGroupShape gs = CTGroupShape.Factory.parse(shapePart.getInputStream());
+            CTGroupShape gs = CTGroupShape.Factory.parse(shapePart.getInputStream(), POIXMLDocumentPart.DEFAULT_XML_OPTIONS);
             XSLFGroupShape xgs = new XSLFGroupShape(gs, null);
             return xgs.getShapes().get(0);               
         } finally {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message