]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
fixes a problem where the start of a list dissapeared
authorKeiron Liddle <keiron@apache.org>
Thu, 25 Jan 2001 01:03:52 +0000 (01:03 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 25 Jan 2001 01:03:52 +0000 (01:03 +0000)
if a page break was between items
it was incorrectly return AREA_FULL_NONE when
some list items were already present

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

src/org/apache/fop/fo/flow/ListBlock.java

index edac498256a19bf9f7a9fc87b065fec33e5fec5b..4526a81b78150272dd08e4d62b526e7adc81064e 100644 (file)
@@ -182,6 +182,9 @@ public class ListBlock extends FObj {
             listItem.setBodyIndent(this.bodyIndent);
             Status status;
             if ((status = listItem.layout(blockArea)).isIncomplete()) {
+                if(status.getCode() == Status.AREA_FULL_NONE && i > 0) {
+                    status = new Status(Status.AREA_FULL_SOME);
+                }
                 this.marker = i;
                 blockArea.end();
                 area.addChild(blockArea);