Browse Source

FOP-3120: IllegalArgumentException for list in a table

tags/2_9
Simon Steiner 1 year ago
parent
commit
2eb5249485

+ 6
- 1
fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java View File

@@ -315,7 +315,9 @@ public abstract class AbstractLayoutManager extends AbstractBaseLayoutManager im
* @return True if it is the first Position
*/
public boolean isFirst(Position pos) {
//log.trace("isFirst() smallestPosNumberChecked=" + smallestPosNumberChecked + " " + pos);
if (pos == null) {
return false;
}
verifyNonNullPosition(pos);
if (pos.getIndex() == this.smallestPosNumberChecked) {
return true;
@@ -333,6 +335,9 @@ public abstract class AbstractLayoutManager extends AbstractBaseLayoutManager im
* @return True if it is the last Position
*/
public boolean isLast(Position pos) {
if (pos == null) {
return false;
}
verifyNonNullPosition(pos);
return (pos.getIndex() == this.lastGeneratedPosition
&& isFinished());

+ 4198
- 0
fop/test/layoutengine/standard-testcases/table_list.xml
File diff suppressed because it is too large
View File


Loading…
Cancel
Save