diff options
Diffstat (limited to 'src/org/apache/fop/image/SVGImage.java')
-rw-r--r-- | src/org/apache/fop/image/SVGImage.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/apache/fop/image/SVGImage.java b/src/org/apache/fop/image/SVGImage.java index 49e69865e..95d7b5d09 100644 --- a/src/org/apache/fop/image/SVGImage.java +++ b/src/org/apache/fop/image/SVGImage.java @@ -26,10 +26,10 @@ import org.apache.batik.dom.svg.SAXSVGDocumentFactory; public class SVGImage extends AbstractFopImage { SVGDocument doc; - public SVGImage(URL href, ImageReader imgReader) { - super(href, imgReader); - if(imgReader instanceof SVGReader) { - doc = (SVGDocument)((SVGReader)imgReader).getDocument(); + public SVGImage(URL href, FopImage.ImageInfo imgInfo) { + super(href, imgInfo); + if(imgInfo.data instanceof SVGDocument) { + doc = (SVGDocument)imgInfo.data; } } |