Author: nick Date: Sun Mar 9 08:05:22 2008 New Revision: 635255 URL: http://svn.apache.org/viewvc?rev=635255&view=rev Log: Fix a few ooxml unit tests
Modified: poi/branches/ooxml/src/ooxml/java/org/apache/poi/POIXMLDocument.java Modified: poi/branches/ooxml/src/ooxml/java/org/apache/poi/POIXMLDocument.java URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/ooxml/java/org/apache/poi/POIXMLDocument.java?rev=635255&r1=635254&r2=635255&view=diff ============================================================================== --- poi/branches/ooxml/src/ooxml/java/org/apache/poi/POIXMLDocument.java (original) +++ poi/branches/ooxml/src/ooxml/java/org/apache/poi/POIXMLDocument.java Sun Mar 9 08:05:22 2008 @@ -107,13 +107,13 @@ /** * 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; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]