]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Copied the logic over incorrectly--fixed (even though IIRC
authorGlen Mazza <gmazza@apache.org>
Fri, 13 May 2005 00:54:14 +0000 (00:54 +0000)
committerGlen Mazza <gmazza@apache.org>
Fri, 13 May 2005 00:54:14 +0000 (00:54 +0000)
RetrieveMarkers work currently anyway.)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_KnuthStylePageBreaking@198621 13f79535-47bb-0310-9956-ffa450edef68

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

index 60f71c36286857b239faaa04ac3718a18e055914..bd7cac98a2e2b582c7f2f7e8859f35c4fd8d937a 100644 (file)
@@ -367,8 +367,7 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager {
                 PageViewport pv = areaTreeModel.getPage(seq, page);
                 mark = (Marker)pv.getMarker(name, Constants.EN_LEWP);
                 if (mark != null) {
-                    rm.bindMarker(mark);
-                    return rm;
+                    break;
                 }
                 page--;
                 if (page < 0 && doc && seq > 1) {
@@ -380,9 +379,11 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager {
 
         if (mark == null) {
             log.debug("found no marker with name: " + name);
+            return null;
+        } else {
+            rm.bindMarker(mark);
+            return rm;
         }
-
-        return null;
     }
 
     private PageViewport makeNewPage(boolean bIsBlank, boolean bIsFirst, boolean bIsLast) {