]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix regression for fo:retrieve-marker.
authorFinn Bock <bckfnn@apache.org>
Sun, 10 Oct 2004 20:24:16 +0000 (20:24 +0000)
committerFinn Bock <bckfnn@apache.org>
Sun, 10 Oct 2004 20:24:16 +0000 (20:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198030 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/RetrieveMarkerLayoutManager.java

index 21834e7191baa1a67e48f9a7aad424396a679674..5a0f074bdd1c28d04f6ec4a47d9e8633aa387afd 100644 (file)
@@ -20,6 +20,7 @@ package org.apache.fop.layoutmgr;
 
 import java.util.ArrayList;
 import java.util.List;
+import java.util.LinkedList;
 
 import org.apache.fop.area.Area;
 import org.apache.fop.fo.flow.Marker;
@@ -62,6 +63,15 @@ public class RetrieveMarkerLayoutManager extends AbstractLayoutManager {
         return replaceLM.getNextBreakPoss(context);
     }
 
+    public LinkedList getNextKnuthElements(LayoutContext context,
+            int alignment) {
+        loadLM();
+        if (replaceLM == null) {
+            return null;
+        }
+        return replaceLM.getNextKnuthElements(context, alignment);
+    }
+
     public void addAreas(PositionIterator parentIter,
                          LayoutContext layoutContext) {
 
@@ -96,7 +106,7 @@ public class RetrieveMarkerLayoutManager extends AbstractLayoutManager {
             List list = new ArrayList();
             Marker marker = retrieveMarker(name, position, boundary);
             if (marker != null) {
-                marker.addLayoutManager(markerLMList);
+                marker.addLayoutManager(list);
                 if (list.size() > 0) {
                     replaceLM =  (LayoutManager)list.get(0);
                     replaceLM.setParent(this);