]> source.dussan.org Git - poi.git/commitdiff
Fix a few ooxml unit tests
authorNick Burch <nick@apache.org>
Sun, 9 Mar 2008 15:05:22 +0000 (15:05 +0000)
committerNick Burch <nick@apache.org>
Sun, 9 Mar 2008 15:05:22 +0000 (15:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635255 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/POIXMLDocument.java

index 606c0c3b807e39a5ef887b9ac8c0f948a0a7eda4..bcc8c0911aa2d8e7d7255d6b81adb9cb99a24835 100644 (file)
@@ -107,13 +107,13 @@ public abstract class POIXMLDocument {
        /**
         * Fetches the (single) PackagePart which is defined as
         *  the supplied relation content type of the base
-        *  container, or null if none found.
+        *  package/container, or null if none found.
         * @param relationType The relation content type to search for
         * @throws IllegalArgumentException If we find more than one part of that type
         */
        protected PackagePart getSinglePartByRelationType(String relationType) throws IllegalArgumentException, OpenXML4JException {
                PackageRelationshipCollection rels =
-                       getCorePart().getRelationshipsByType(relationType);
+                       pkg.getRelationshipsByType(relationType);
                if(rels.size() == 0) {
                        return null;
                }