diff options
author | Jeremias Maerki <jeremias@apache.org> | 2009-02-11 20:34:11 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2009-02-11 20:34:11 +0000 |
commit | 2a40886018161c8be334439447dc1cc10478c606 (patch) | |
tree | 63f7cf2119858c7b652e3a9eab549d0b717694c0 /src/java/org/apache/fop | |
parent | 181e2652be9ada8ef6f59b1713e1f707818962b4 (diff) | |
download | xmlgraphics-fop-2a40886018161c8be334439447dc1cc10478c606.tar.gz xmlgraphics-fop-2a40886018161c8be334439447dc1cc10478c606.zip |
Bugfix: Need to copy attributes. Xalan XSLTC reuses the Attributes instance (and modifies it freely).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@743492 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/area/AreaTreeParser.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/area/AreaTreeParser.java b/src/java/org/apache/fop/area/AreaTreeParser.java index 580ce19f4..7269bdf10 100644 --- a/src/java/org/apache/fop/area/AreaTreeParser.java +++ b/src/java/org/apache/fop/area/AreaTreeParser.java @@ -42,6 +42,7 @@ import org.w3c.dom.Document; import org.xml.sax.Attributes; import org.xml.sax.ContentHandler; import org.xml.sax.SAXException; +import org.xml.sax.helpers.AttributesImpl; import org.xml.sax.helpers.DefaultHandler; import org.apache.commons.logging.Log; @@ -250,7 +251,7 @@ public class AreaTreeParser { delegate.startDocument(); delegate.startElement(uri, localName, qName, attributes); } else { - lastAttributes = attributes; + lastAttributes = new AttributesImpl(attributes); boolean handled = true; if ("".equals(uri)) { Maker maker = (Maker)makers.get(localName); |