diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2011-02-06 21:22:44 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2011-02-06 21:22:44 +0000 |
commit | ce0956f9133da2f1580b723639c95548bab38fea (patch) | |
tree | 918ae37372663e38f2e02de630ea9c7aa6db8585 /src | |
parent | 0f971bd07ebceadcbca7b02a803f5cafcd26be7d (diff) | |
download | xmlgraphics-fop-ce0956f9133da2f1580b723639c95548bab38fea.tar.gz xmlgraphics-fop-ce0956f9133da2f1580b723639c95548bab38fea.zip |
Make URI extraction consistent with fo:external-graphic's src + remove unnecessary return
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067770 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java index b38874606..d807aee2d 100644 --- a/src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java @@ -92,7 +92,7 @@ public class ExternalDocumentLayoutManager extends AbstractPageSequenceLayoutMan FOUserAgent userAgent = pageSeq.getUserAgent(); ImageManager imageManager = userAgent.getFactory().getImageManager(); - String uri = getExternalDocument().getSrc(); + String uri = URISpecification.getURL(getExternalDocument().getSrc()); Integer firstPageIndex = ImageUtil.getPageIndexFromURI(uri); boolean hasPageIndex = (firstPageIndex != null); @@ -146,7 +146,6 @@ public class ExternalDocumentLayoutManager extends AbstractPageSequenceLayoutMan } catch (URISyntaxException e) { getResourceEventProducer().uriError(this, uri, e, getExternalDocument().getLocator()); - return; } } } catch (FileNotFoundException fnfe) { |