From e2189deab032fe91661c45f4272a58a6238b6fbf Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Sun, 7 Dec 2008 18:02:52 +0000 Subject: [PATCH] Bugzilla #46360: Fixed a multi-threading issue when rendering SVG. (Missed one) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@724164 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/fop/image/loader/batik/ImageConverterSVG2G2D.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java b/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java index 2bb521dc9..8d9399a3c 100644 --- a/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java +++ b/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java @@ -29,6 +29,7 @@ import org.apache.batik.bridge.BridgeContext; import org.apache.batik.bridge.GVTBuilder; import org.apache.batik.bridge.UserAgent; import org.apache.batik.dom.svg.SVGDOMImplementation; +import org.apache.batik.dom.util.DOMUtilities; import org.apache.batik.gvt.GraphicsNode; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -82,7 +83,7 @@ public class ImageConverterSVG2G2D extends AbstractImageConverter { Document doc = svg.getDocument(); //Cloning SVG DOM as Batik attaches non-thread-safe facilities (like the CSS engine) //to it. - Document clonedDoc = BatikUtil.cloneSVGDocument(doc); + Document clonedDoc = DOMUtilities.deepCloneDocument(doc, doc.getImplementation()); //Build the GVT tree final GraphicsNode root; -- 2.39.5