diff options
author | Keiron Liddle <keiron@apache.org> | 2001-05-17 12:20:59 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-05-17 12:20:59 +0000 |
commit | 7249eb425a953e8f0ad56762b16875a8404bfdeb (patch) | |
tree | a582569e5930afc9c0ab622d8999ace8b4e7a31d /src/org/apache/fop/render/txt | |
parent | 7d5193b91e42874e7ad89f4d12d014a92ab42368 (diff) | |
download | xmlgraphics-fop-7249eb425a953e8f0ad56762b16875a8404bfdeb.tar.gz xmlgraphics-fop-7249eb425a953e8f0ad56762b16875a8404bfdeb.zip |
restored support for external svg images
fixed a few other problems
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194254 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/render/txt')
-rwxr-xr-x | src/org/apache/fop/render/txt/TXTRenderer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/apache/fop/render/txt/TXTRenderer.java b/src/org/apache/fop/render/txt/TXTRenderer.java index b1c5978c5..61d2b4a4c 100755 --- a/src/org/apache/fop/render/txt/TXTRenderer.java +++ b/src/org/apache/fop/render/txt/TXTRenderer.java @@ -23,6 +23,7 @@ import org.apache.fop.image.*; import org.apache.fop.svg.SVGArea; import org.w3c.dom.svg.SVGSVGElement; +import org.w3c.dom.svg.SVGDocument; // Java import java.io.IOException; @@ -956,7 +957,7 @@ if ( debug ) System.out.println("TXTRenderer.renderSVGArea(" + area + ")"); int x = this.currentAreaContainerXPosition; int y = this.currentYPosition; - SVGSVGElement svg = area.getSVGDocument().getRootElement(); + SVGSVGElement svg = ((SVGDocument)area.getSVGDocument()).getRootElement(); int w = (int)(svg.getWidth().getBaseVal().getValue() * 1000); int h = (int)(svg.getHeight().getBaseVal().getValue() * 1000); |