aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2009-01-16 14:20:59 +0000
committerJeremias Maerki <jeremias@apache.org>2009-01-16 14:20:59 +0000
commit6f426c05d34dfad003d37420c8e7c8a7f617bf6f (patch)
tree475944a513db9b34d1161c28010072e1dc91cf11
parent6ecef8a3e6b919c0a544d0f4c28e15a5928445a8 (diff)
downloadxmlgraphics-fop-6f426c05d34dfad003d37420c8e7c8a7f617bf6f.tar.gz
xmlgraphics-fop-6f426c05d34dfad003d37420c8e7c8a7f617bf6f.zip
Bugfix: Weave included page segments into the object sequence instead of inserting them at the beginning. Otherwise they can be overpainted by marks that would otherwise lay under the page segment.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@735025 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/afp/modca/AbstractPageObject.java17
-rw-r--r--src/java/org/apache/fop/afp/modca/Overlay.java1
-rw-r--r--src/java/org/apache/fop/afp/modca/PageObject.java1
3 files changed, 1 insertions, 18 deletions
diff --git a/src/java/org/apache/fop/afp/modca/AbstractPageObject.java b/src/java/org/apache/fop/afp/modca/AbstractPageObject.java
index eff879715..d17c06c6a 100644
--- a/src/java/org/apache/fop/afp/modca/AbstractPageObject.java
+++ b/src/java/org/apache/fop/afp/modca/AbstractPageObject.java
@@ -61,9 +61,6 @@ public abstract class AbstractPageObject extends AbstractNamedAFPObject implemen
/** The list of tag logical elements */
protected List/*<TagLogicalElement>*/ tagLogicalElements = null;
- /** The list of the include page segments */
- protected List/*<IncludePageSegment>*/ includePageSegments = null;
-
/** The list of objects within this resource container */
protected List/*<AbstractStructuredAFPObject>*/ objects = new java.util.ArrayList();
@@ -254,19 +251,7 @@ public abstract class AbstractPageObject extends AbstractNamedAFPObject implemen
*/
public void createIncludePageSegment(String name, int x, int y) {
IncludePageSegment ips = factory.createIncludePageSegment(name, x, y);
- getIncludePageSegments().add(ips);
- }
-
- /**
- * Returns the include page segments list
- *
- * @return the include page segments list
- */
- private List getIncludePageSegments() {
- if (this.includePageSegments == null) {
- this.includePageSegments = new java.util.ArrayList/*<IncludePageSegment>*/();
- }
- return this.includePageSegments;
+ addObject(ips);
}
/**
diff --git a/src/java/org/apache/fop/afp/modca/Overlay.java b/src/java/org/apache/fop/afp/modca/Overlay.java
index ea9619b20..0179c94a7 100644
--- a/src/java/org/apache/fop/afp/modca/Overlay.java
+++ b/src/java/org/apache/fop/afp/modca/Overlay.java
@@ -72,7 +72,6 @@ public class Overlay extends PageObject {
getActiveEnvironmentGroup().writeToStream(os);
- writeObjects(includePageSegments, os);
writeObjects(tagLogicalElements, os);
writeObjects(objects, os);
}
diff --git a/src/java/org/apache/fop/afp/modca/PageObject.java b/src/java/org/apache/fop/afp/modca/PageObject.java
index 33852d90b..6c2547f0b 100644
--- a/src/java/org/apache/fop/afp/modca/PageObject.java
+++ b/src/java/org/apache/fop/afp/modca/PageObject.java
@@ -185,7 +185,6 @@ public class PageObject extends AbstractResourceGroupContainer {
getActiveEnvironmentGroup().writeToStream(os);
- writeObjects(includePageSegments, os);
writeObjects(tagLogicalElements, os);
writeObjects(objects, os);
}