aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-12-07 18:02:52 +0000
committerJeremias Maerki <jeremias@apache.org>2008-12-07 18:02:52 +0000
commite2189deab032fe91661c45f4272a58a6238b6fbf (patch)
tree41349f0838355279aa55729ff347a1aa50fc59bb
parent790875d4101f90ab3419025717b581c255d87fe1 (diff)
downloadxmlgraphics-fop-e2189deab032fe91661c45f4272a58a6238b6fbf.tar.gz
xmlgraphics-fop-e2189deab032fe91661c45f4272a58a6238b6fbf.zip
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
-rw-r--r--src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java3
1 files changed, 2 insertions, 1 deletions
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;