]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Set not only the base URL for the SVG Document but also the URI. Otherwise, relativel...
authorJeremias Maerki <jeremias@apache.org>
Wed, 31 Aug 2005 20:34:14 +0000 (20:34 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 31 Aug 2005 20:34:14 +0000 (20:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265578 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/extensions/svg/SVGElement.java

index 19fc06a3a34b5c6bb5cc38ff2c963b28eee94d8c..1a5f08e687ed4532485470d52f66ea598cb09ca3 100644 (file)
@@ -84,7 +84,9 @@ public class SVGElement extends SVGObj {
                             ? new java.io.File("").toURL().toExternalForm() 
                             : getUserAgent().getBaseURL());
             if (baseURL != null) {
-                ((SVGOMDocument)doc).setURLObject(baseURL);
+                SVGOMDocument svgdoc = (SVGOMDocument)doc; 
+                svgdoc.setURLObject(baseURL);
+                svgdoc.setDocumentURI(baseURL.toString());
             }
         } catch (Exception e) {
             getLogger().error("Could not set base URL for svg", e);