]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Make URI extraction consistent with fo:external-graphic's src + remove unnecessary...
authorAndreas L. Delmelle <adelmelle@apache.org>
Sun, 6 Feb 2011 21:22:44 +0000 (21:22 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Sun, 6 Feb 2011 21:22:44 +0000 (21:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067770 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java

index b38874606348aa50527df269f556bdbf5e6ff79d..d807aee2da818dd7ef889545ec298bd5a30becaa 100644 (file)
@@ -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) {