diff options
-rw-r--r-- | src/org/apache/fop/image/analyser/SVGReader.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/apache/fop/image/analyser/SVGReader.java b/src/org/apache/fop/image/analyser/SVGReader.java index e4416d33e..8c3eac50a 100644 --- a/src/org/apache/fop/image/analyser/SVGReader.java +++ b/src/org/apache/fop/image/analyser/SVGReader.java @@ -158,10 +158,10 @@ public class SVGReader implements ImageReader { fis.mark(length + 1); SAXSVGDocumentFactory factory = new SAXSVGDocumentFactory( XMLImage.getParserName()); - SVGDocument doc = factory.createDocument(uri, fis); + SVGDocument doc = (SVGDocument)factory.createDocument(uri, fis); info.data = doc; - Element e = ((SVGDocument) doc).getRootElement(); + Element e = doc.getRootElement(); String s; SVGUserAgent userAg = new SVGUserAgent(ua, new AffineTransform()); |