]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Removed the lastMediumMap variable and the check to omit the IMM if it doesn't change...
authorJeremias Maerki <jeremias@apache.org>
Fri, 8 Jul 2011 15:00:47 +0000 (15:00 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 8 Jul 2011 15:00:47 +0000 (15:00 +0000)
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

index 4dd7df324c726b6a7d7e148bd8ec959ce45ce7bf..3c3fc123f590951fd7921752b9419da241ea14a2 100644 (file)
@@ -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;