Sfoglia il codice sorgente

FOP-2107: org.apache.batik.bridge.BridgeException: Unable to make sense of URL for connection; patch suggested by Matthias Reischenbacher and Robert Meyer comments.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1526329 13f79535-47bb-0310-9956-ffa450edef68
pull/22/head
Luis Bernardo 10 anni fa
parent
commit
8fa822300a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/java/org/apache/fop/apps/FOUserAgent.java

+ 1
- 1
src/java/org/apache/fop/apps/FOUserAgent.java Vedi File

@@ -408,7 +408,7 @@ public class FOUserAgent {
try {
// Have to do this so we can resolve data URIs
StreamSource src = new StreamSource(resourceResolver.getResource(uri));
src.setSystemId(uri);
src.setSystemId(new File(uri).toURI().toURL().toExternalForm());
return src;
} catch (URISyntaxException use) {
return null;

Loading…
Annulla
Salva