From 284ff1805db3a11e1f8fbad4971d32674f45259d Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 8 Jul 2011 15:00:47 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/render/afp/AFPDocumentHandler.java | 6 +----- 1 file changed, 1 insertion(+), 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 pageSegmentMap = new java.util.HashMap(); - /** 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; -- 2.39.5