Browse Source

Fixed getDocument() method (is now getDOMDocument()). The plan extension still worked because convertToSvg() was called by getDimension(). Anyway, this is now fixed.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@266300 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_90-alpha1
Jeremias Maerki 19 years ago
parent
commit
f58ac67275
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      examples/plan/src/org/apache/fop/plan/PlanElement.java

+ 4
- 5
examples/plan/src/org/apache/fop/plan/PlanElement.java View File

/* /*
* Copyright 1999-2004 The Apache Software Foundation.
* Copyright 1999-2005 The Apache Software Foundation.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
*/ */
public void processNode(String elementName, Locator locator, public void processNode(String elementName, Locator locator,
Attributes attlist, PropertyList propertyList) Attributes attlist, PropertyList propertyList)
throws FOPException
{
throws FOPException {
super.processNode(elementName, locator, attlist, propertyList); super.processNode(elementName, locator, attlist, propertyList);
createBasicDocument(); createBasicDocument();
} }
} }


/** /**
* @see org.apache.fop.fo.XMLObj#getDocument()
* @see org.apache.fop.fo.XMLObj#getDOMDocument()
*/ */
public Document getDocument() {
public Document getDOMDocument() {
convertToSVG(); convertToSVG();
return doc; return doc;
} }

Loading…
Cancel
Save