Browse Source

Simplified addAreasAndFlushRow


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@610853 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_95beta
Vincent Hennebert 16 years ago
parent
commit
8c267304cb
1 changed files with 2 additions and 18 deletions
  1. 2
    18
      src/java/org/apache/fop/layoutmgr/table/RowPainter.java

+ 2
- 18
src/java/org/apache/fop/layoutmgr/table/RowPainter.java View File

@@ -169,27 +169,11 @@ class RowPainter {
tclm.addRowBackgroundArea(rowFO, actualRowHeight, layoutContext.getRefIPD(), yoffset);
for (int i = 0; i < primaryGridUnits.length; i++) {
GridUnit currentGU = lastRow.getGridUnit(i);
if (primaryGridUnits[i] != null) {
if (forcedFlush || currentGU.isLastGridUnitRowSpan()) {
//the last line in the "if" above is to avoid a premature end of a
//row-spanned cell because no CellParts are generated after a cell is
//finished with its content.
//See table-cell_number-rows-spanned_bug38397.xml
addAreasForCell(primaryGridUnits[i], start[i], end[i], lastRow, partBPD[i],
actualRowHeight);
primaryGridUnits[i] = null;
start[i] = 0;
end[i] = -1;
partBPD[i] = 0;
}
} else if (!currentGU.isEmpty()
&& currentGU.getColSpanIndex() == 0
if (!currentGU.isEmpty() && currentGU.getColSpanIndex() == 0
&& (forcedFlush || currentGU.isLastGridUnitRowSpan())) {
//A row-spanned cell has finished contributing content on the previous page
//and now still has to cause grid units to be painted.
//See table-cell_page-break_span.xml
addAreasForCell(currentGU.getPrimary(), start[i], end[i], lastRow, partBPD[i],
actualRowHeight);
primaryGridUnits[i] = null;
start[i] = 0;
end[i] = -1;
partBPD[i] = 0;

Loading…
Cancel
Save