From 0b5579adfdfaf412ffde5770b933a7d6e96eb275 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Thu, 25 Jan 2001 01:03:52 +0000 Subject: [PATCH] fixes a problem where the start of a list dissapeared 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/apache/fop/fo/flow/ListBlock.java b/src/org/apache/fop/fo/flow/ListBlock.java index edac49825..4526a81b7 100644 --- a/src/org/apache/fop/fo/flow/ListBlock.java +++ b/src/org/apache/fop/fo/flow/ListBlock.java @@ -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); -- 2.39.5