浏览代码

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 年前
父节点
当前提交
f58ac67275
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4
    5
      examples/plan/src/org/apache/fop/plan/PlanElement.java

+ 4
- 5
examples/plan/src/org/apache/fop/plan/PlanElement.java 查看文件

@@ -1,5 +1,5 @@
/*
* Copyright 1999-2004 The Apache Software Foundation.
* Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,8 +50,7 @@ public class PlanElement extends PlanObj {
*/
public void processNode(String elementName, Locator locator,
Attributes attlist, PropertyList propertyList)
throws FOPException
{
throws FOPException {
super.processNode(elementName, locator, attlist, propertyList);
createBasicDocument();
}
@@ -80,9 +79,9 @@ public class PlanElement extends PlanObj {
}

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

正在加载...
取消
保存