Browse Source

Bugfix: the last element generated by the merging algorithm may now be a glue


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@597052 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_95beta
Vincent Hennebert 16 years ago
parent
commit
b035ca72ae

+ 2
- 1
src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java View File

@@ -232,7 +232,8 @@ public class TableContentLayoutManager implements PercentBaseContext {
// Break after the table's last row
// TODO should eventually be handled at the table level
if (breakBetween != Constants.EN_AUTO) {
if (returnList.size() > 0) {
if (returnList.size() > 0 && ((ListElement) returnList.getLast()).isPenalty()) {
// May be a glue if the unbroken height is greater than the broken heights
BreakElement breakPoss = (BreakElement) returnList.getLast();
breakPoss.setPenaltyValue(-KnuthPenalty.INFINITE);
breakPoss.setBreakClass(breakBetween);

Loading…
Cancel
Save