From: Andreas L. Delmelle Date: Sun, 6 Feb 2011 21:22:44 +0000 (+0000) Subject: Make URI extraction consistent with fo:external-graphic's src + remove unnecessary... X-Git-Tag: fop-1_1rc1old~299 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ce0956f9133da2f1580b723639c95548bab38fea;p=xmlgraphics-fop.git 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 --- 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) {