diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2008-02-19 17:32:18 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2008-02-19 17:32:18 +0000 |
commit | d2ab1d818a06caa65580ccc7d28b773b01b1f2f9 (patch) | |
tree | 12597232a303d4b20fc512e51e3edd26d6e41dbe /src/java/org | |
parent | 56387de039f142b731d6ced52db6c79cb422824b (diff) | |
download | xmlgraphics-fop-d2ab1d818a06caa65580ccc7d28b773b01b1f2f9.tar.gz xmlgraphics-fop-d2ab1d818a06caa65580ccc7d28b773b01b1f2f9.zip |
Fixed a bug leading to the content of row-spanning cells being duplicated at page breaks, when it's small enough to fit on the previous row
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@629169 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/ActiveCell.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/ActiveCell.java b/src/java/org/apache/fop/layoutmgr/table/ActiveCell.java index d89f43370..c4bff5112 100644 --- a/src/java/org/apache/fop/layoutmgr/table/ActiveCell.java +++ b/src/java/org/apache/fop/layoutmgr/table/ActiveCell.java @@ -290,12 +290,14 @@ class ActiveCell { * @see #signalRowLastStep(int) */ private void increaseCurrentStep(int limit) { - while (afterNextStep.totalLength <= limit && nextStep.breakClass == Constants.EN_AUTO) { - nextStep.set(afterNextStep); - if (afterNextStep.end >= elementList.size() - 1) { - break; + if (nextStep.end < elementList.size() - 1) { + while (afterNextStep.totalLength <= limit && nextStep.breakClass == Constants.EN_AUTO) { + nextStep.set(afterNextStep); + if (afterNextStep.end >= elementList.size() - 1) { + break; + } + gotoNextLegalBreak(); } - gotoNextLegalBreak(); } } |