aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/extensions
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2008-07-13 10:26:48 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2008-07-13 10:26:48 +0000
commit65ff8feed50291ddc834006d279fc26a640d0fb5 (patch)
tree9ace2a7d9d9f8e962395bd689af3a3572649f7af /src/java/org/apache/fop/fo/extensions
parentd98eb3e8a5612dd77b12613e5245da9d3461a750 (diff)
downloadxmlgraphics-fop-65ff8feed50291ddc834006d279fc26a640d0fb5.tar.gz
xmlgraphics-fop-65ff8feed50291ddc834006d279fc26a640d0fb5.zip
Replace occurrences of File.toURL() by File.toURI().toURL() (recommended as of Java 6, where File.toURL() is deprecated)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@676297 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/extensions')
-rw-r--r--src/java/org/apache/fop/fo/extensions/svg/SVGElement.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java b/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java
index 521f3b81b..7711130b1 100644
--- a/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java
+++ b/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java
@@ -92,7 +92,7 @@ public class SVGElement extends SVGObj {
try {
URL baseURL = new URL(getUserAgent().getBaseURL() == null
- ? new java.io.File("").toURL().toExternalForm()
+ ? new java.io.File("").toURI().toURL().toExternalForm()
: getUserAgent().getBaseURL());
if (baseURL != null) {
SVGOMDocument svgdoc = (SVGOMDocument)doc;