From 65ec65e6cd388ea5868d1f9ce9818effc8251171 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Mon, 11 Sep 2000 03:18:13 +0000 Subject: [PATCH] correctly finds external reference git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193691 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/render/pdf/PDFRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/apache/fop/render/pdf/PDFRenderer.java b/src/org/apache/fop/render/pdf/PDFRenderer.java index 9e2994239..60ec19564 100644 --- a/src/org/apache/fop/render/pdf/PDFRenderer.java +++ b/src/org/apache/fop/render/pdf/PDFRenderer.java @@ -1801,7 +1801,8 @@ e.printStackTrace(); FopImage img = FopImageFactory.Make(href); if(img instanceof SVGImage) { SVGDocument doc = ((SVGImage)img).getSVGDocument(); - Element ele = doc.getElementById(ref.substring(pos, ref.length())); + Element ele = doc.getElementById(ref.substring(pos + 1, ref.length())); +//System.out.println("def:" + ref.substring(pos + 1, ref.length()) + ":" + ele); if(ele instanceof SVGElement) { return (SVGElement)ele; } @@ -1912,7 +1913,6 @@ e.printStackTrace(); FontState oldfs = fs; changed = updateFont(tsg, fs); boolean spacing = "preserve".equals(tsg.getXMLspace()); -System.out.println("tspan:" + tsg.getChildNodes()); renderTextNodes(spacing, tsg.getChildNodes(), tsg.getX().getBaseVal(), tsg.getY().getBaseVal(), tsg.getDx().getBaseVal(), tsg.getDy().getBaseVal()); // currentX += fs.width(' ') / 1000f; -- 2.39.5