aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/xml
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-01-19 21:45:07 +0000
committerJeremias Maerki <jeremias@apache.org>2005-01-19 21:45:07 +0000
commitcf024a07dcc0d5b653a63b89bd80f5eed2e0c47c (patch)
tree7c2d7875ed16298b2b288176fbe552f925df0688 /src/java/org/apache/fop/render/xml
parent695177f4018c57f5aa5bde014b6e594b41534579 (diff)
downloadxmlgraphics-fop-cf024a07dcc0d5b653a63b89bd80f5eed2e0c47c.tar.gz
xmlgraphics-fop-cf024a07dcc0d5b653a63b89bd80f5eed2e0c47c.zip
Safety check
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198289 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/xml')
-rw-r--r--src/java/org/apache/fop/render/xml/XMLRenderer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/xml/XMLRenderer.java b/src/java/org/apache/fop/render/xml/XMLRenderer.java
index 16a769323..45c90d02d 100644
--- a/src/java/org/apache/fop/render/xml/XMLRenderer.java
+++ b/src/java/org/apache/fop/render/xml/XMLRenderer.java
@@ -313,7 +313,9 @@ public class XMLRenderer extends AbstractRenderer {
* @see org.apache.fop.render.Renderer#stopRenderer()
*/
public void stopRenderer() throws IOException {
- endElement("pageSequence");
+ if (startedSequence) {
+ endElement("pageSequence");
+ }
endElement("areaTree");
try {
handler.endDocument();