From ec579876451e6bce287a26e730a71242fc1a47df Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Sun, 9 Mar 2008 15:05:22 +0000 Subject: [PATCH] Fix a few ooxml unit tests 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/POIXMLDocument.java b/src/ooxml/java/org/apache/poi/POIXMLDocument.java index 606c0c3b80..bcc8c0911a 100644 --- a/src/ooxml/java/org/apache/poi/POIXMLDocument.java +++ b/src/ooxml/java/org/apache/poi/POIXMLDocument.java @@ -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; }