]> source.dussan.org Git - poi.git/commitdiff
Bug 59747: Adjust order of first two entries in the resulting Zip to try to enable...
authorDominik Stadler <centic@apache.org>
Fri, 22 Sep 2017 21:19:39 +0000 (21:19 +0000)
committerDominik Stadler <centic@apache.org>
Fri, 22 Sep 2017 21:19:39 +0000 (21:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1809357 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java

index 17046da3579f0df6405f937dac1fcc6ea7ae935d..16285615dfc1944abccf5b16892a464d11a9d108 100644 (file)
@@ -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