From 5e6b8af0c771ffcac294bbc9ddccd146ef47956d Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Mon, 29 Jul 2002 11:00:14 +0000 Subject: [PATCH] adapted to change in batik git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195033 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/image/analyser/SVGReader.java | 4 ++-- 1 file 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()); -- 2.39.5