poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1662971 - /poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
Date Sat, 28 Feb 2015 17:36:19 GMT
Author: nick
Date: Sat Feb 28 17:36:19 2015
New Revision: 1662971

URL: http://svn.apache.org/r1662971
Log:
Ensure that the core properties are there before saving them, in case they have not yet been
lazy-created

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java?rev=1662971&r1=1662970&r2=1662971&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java Sat Feb 28 17:36:19
2015
@@ -443,7 +443,9 @@ public final class ZipPackage extends Pa
 			if (this.getPartsByRelationshipType(PackageRelationshipTypes.CORE_PROPERTIES).size() ==
0 &&
                 this.getPartsByRelationshipType(PackageRelationshipTypes.CORE_PROPERTIES_ECMA376).size()
== 0    ) {
 				logger.log(POILogger.DEBUG,"Save core properties part");
-
+				
+				// Ensure that core properties are added if missing
+				getPackageProperties();
 				// Add core properties to part list ...
 				addPackagePart(this.packageProperties);
 				// ... and to add its relationship ...



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


Mime
View raw message