aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2011-07-08 15:00:47 +0000
committerJeremias Maerki <jeremias@apache.org>2011-07-08 15:00:47 +0000
commit284ff1805db3a11e1f8fbad4971d32674f45259d (patch)
tree321f5d0cc62ba0c9999a6677534b3e9622b2de30 /src/java
parentca917dad2b31163f8f83c833566e1828e95ab6bf (diff)
downloadxmlgraphics-fop-284ff1805db3a11e1f8fbad4971d32674f45259d.tar.gz
xmlgraphics-fop-284ff1805db3a11e1f8fbad4971d32674f45259d.zip
Removed the lastMediumMap variable and the check to omit the IMM if it doesn't change. I wonder why I came up with that. This can lead, among other things, to problems when an AFP file is split.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1144351 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/render/afp/AFPDocumentHandler.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/render/afp/AFPDocumentHandler.java b/src/java/org/apache/fop/render/afp/AFPDocumentHandler.java
index 4dd7df324..3c3fc123f 100644
--- a/src/java/org/apache/fop/render/afp/AFPDocumentHandler.java
+++ b/src/java/org/apache/fop/render/afp/AFPDocumentHandler.java
@@ -83,9 +83,6 @@ public class AFPDocumentHandler extends AbstractBinaryWritingIFDocumentHandler
private Map<String, PageSegmentDescriptor> pageSegmentMap
= new java.util.HashMap<String, PageSegmentDescriptor>();
- /** Medium Map referenced on previous page **/
- private String lastMediumMap;
-
private static enum Location {
ELSEWHERE, IN_DOCUMENT_HEADER, FOLLOWING_PAGE_SEQUENCE, IN_PAGE_HEADER
}
@@ -379,9 +376,8 @@ public class AFPDocumentHandler extends AbstractBinaryWritingIFDocumentHandler
}
AFPInvokeMediumMap imm = (AFPInvokeMediumMap)extension;
String mediumMap = imm.getName();
- if (mediumMap != null && !mediumMap.equals(lastMediumMap)) {
+ if (mediumMap != null) {
dataStream.createInvokeMediumMap(mediumMap);
- lastMediumMap = mediumMap;
}
} else if (extension instanceof AFPIncludeFormMap) {
AFPIncludeFormMap formMap = (AFPIncludeFormMap)extension;