Browse Source

fix FOP-1616

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1872447 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-2_5
Chris Bowditch 4 years ago
parent
commit
d3c2f77d29

+ 7
- 2
fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java View File

@@ -234,8 +234,7 @@ public class RtfTableCell
RtfTable tab = getRow().getTable();

// Get the context of the current table in order to get the width of each column
ITableColumnsInfo tableColumnsInfo
= tab.getITableColumnsInfo();
ITableColumnsInfo tableColumnsInfo = tab.getITableColumnsInfo();

tableColumnsInfo.selectFirstColumn();

@@ -256,6 +255,12 @@ public class RtfTableCell

i--;
}

// check whether table right border should apply if this is really the last cell in the row
if (this.getRow().isHighestCell(this.id + nbMergedCells - 1)) {
writeAttributes(this.getRow().getTable().getBorderAttributes(), new String[]
{ITableAttributes.CELL_BORDER_RIGHT});
}
}
final int xPos = offset + iCurrentWidth;


Loading…
Cancel
Save