diff options
author | Jeremias Maerki <jeremias@apache.org> | 2009-01-02 16:08:24 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2009-01-02 16:08:24 +0000 |
commit | c7c6ba4f035d3f099ea3408431d3290b8bc7aae6 (patch) | |
tree | 078cef6d9a2df768c4a61d203d4e5e89e3f80df3 /src | |
parent | e50e967de01a43e6d87aa64807d77de1466c1b93 (diff) | |
download | xmlgraphics-fop-c7c6ba4f035d3f099ea3408431d3290b8bc7aae6.tar.gz xmlgraphics-fop-c7c6ba4f035d3f099ea3408431d3290b8bc7aae6.zip |
Bugzilla #45306:
Fixed fo:instream-foreign-object inside fo:marker.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@730764 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/fo/FObj.java | 6 | ||||
-rw-r--r-- | src/java/org/apache/fop/fo/flow/AbstractRetrieveMarker.java | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/fo/FObj.java b/src/java/org/apache/fop/fo/FObj.java index e0624df69..55844e6db 100644 --- a/src/java/org/apache/fop/fo/FObj.java +++ b/src/java/org/apache/fop/fo/FObj.java @@ -215,7 +215,7 @@ public abstract class FObj extends FONode implements Constants { * @param parent the (cloned) parent node * @throws FOPException when the child could not be added to the parent */ - protected static void addChildTo(FONode child, FObj parent) + protected static void addChildTo(FONode child, FONode parent) throws FOPException { parent.addChildNode(child); } @@ -573,11 +573,11 @@ public abstract class FObj extends FONode implements Constants { } } - /** @return true if this FObj has extension attachments */ + /** @return true if this FObj has extension attachments */ public boolean hasExtensionAttachments() { return extensionAttachments != null; } - + /** * Adds a foreign attribute to this FObj. * @param attributeName the attribute name as a QName instance diff --git a/src/java/org/apache/fop/fo/flow/AbstractRetrieveMarker.java b/src/java/org/apache/fop/fo/flow/AbstractRetrieveMarker.java index ebba1fda5..1432c9381 100644 --- a/src/java/org/apache/fop/fo/flow/AbstractRetrieveMarker.java +++ b/src/java/org/apache/fop/fo/flow/AbstractRetrieveMarker.java @@ -30,8 +30,8 @@ import org.apache.fop.fo.FObj; import org.apache.fop.fo.FObjMixed; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.ValidationException; +import org.apache.fop.fo.XMLObj; import org.apache.fop.fo.flow.table.Table; -import org.apache.fop.fo.flow.table.TableFObj; /** * Abstract base class for the <a href="http://www.w3.org/TR/xsl/#fo_retrieve-marker"> @@ -102,7 +102,7 @@ public abstract class AbstractRetrieveMarker extends FObjMixed { getLocator(), pList, newPropertyList); - addChildTo(newChild, (FObj) newParent); + addChildTo(newChild, newParent); if (newChild.getNameId() == FO_TABLE) { Table t = (Table) child; cloneSubtree(t.getColumns().iterator(), @@ -117,7 +117,9 @@ public abstract class AbstractRetrieveMarker extends FObjMixed { } else if (child instanceof FOText) { FOText ft = (FOText) newChild; ft.bind(parentPropertyList); - addChildTo(newChild, (FObj) newParent); + addChildTo(newChild, newParent); + } else if (child instanceof XMLObj) { + addChildTo(newChild, newParent); } // trigger end-of-node white-space handling |