diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java index 17046da357..16285615df 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java @@ -554,16 +554,16 @@ public final class ZipPackage extends OPCPackage { } } + // Save content type part. + LOG.log(POILogger.DEBUG,"Save content types part"); + this.contentTypeManager.save(zos); + // Save package relationships part. LOG.log(POILogger.DEBUG,"Save package relationships"); ZipPartMarshaller.marshallRelationshipPart(this.getRelationships(), PackagingURIHelper.PACKAGE_RELATIONSHIPS_ROOT_PART_NAME, zos); - // Save content type part. - LOG.log(POILogger.DEBUG,"Save content types part"); - this.contentTypeManager.save(zos); - // Save parts. for (PackagePart part : getParts()) { // If the part is a relationship part, we don't save it, it's