diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2007-07-17 17:57:40 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2007-07-17 17:57:40 +0000 |
commit | 725096997b8e75b68257849bbecfba0cc65443bc (patch) | |
tree | 77ee42ad224df51dd5346991039ab1840caf4e5c /src/java/org/apache | |
parent | 8c9f964e3c158d790305e04e2688522e92503b9c (diff) | |
download | xmlgraphics-fop-725096997b8e75b68257849bbecfba0cc65443bc.tar.gz xmlgraphics-fop-725096997b8e75b68257849bbecfba0cc65443bc.zip |
Store the index of the last spanned row, instead of the starting row. That latter information isn't really needed.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@556997 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/ActiveCell.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/ActiveCell.java b/src/java/org/apache/fop/layoutmgr/table/ActiveCell.java index b19426f46..f9b100ddb 100644 --- a/src/java/org/apache/fop/layoutmgr/table/ActiveCell.java +++ b/src/java/org/apache/fop/layoutmgr/table/ActiveCell.java @@ -31,8 +31,8 @@ class ActiveCell { /** Knuth elements for this active cell. */ private List elementList; private boolean prevIsBox = false; - /** Number of the row where the row-span begins, zero-based. */ - private int startRow; + /** Number of the row where the row-span ends, zero-based. */ + private int endRow; /** Index, in the list of Knuth elements, of the element starting the current step. */ private int start; /** Index, in the list of Knuth elements, of the element ending the current step. */ @@ -97,14 +97,14 @@ class ActiveCell { paddingAfter = pgu.getBorders().getPaddingAfter(false, pgu.getCellLM()); start = 0; end = -1; - startRow = rowIndex; + endRow = rowIndex + pgu.getCell().getNumberRowsSpanned() - 1; keepWithNextSignal = false; remainingLength = totalLength; goToNextLegalBreak(); } boolean endsOnRow(int rowIndex) { - return rowIndex == startRow + pgu.getCell().getNumberRowsSpanned() - 1; + return rowIndex == endRow; } int getRemainingHeight(int activeRowIndex, EffRow[] rowGroup) { |