diff options
author | Chris Bowditch <cbowditch@apache.org> | 2020-01-07 16:00:06 +0000 |
---|---|---|
committer | Chris Bowditch <cbowditch@apache.org> | 2020-01-07 16:00:06 +0000 |
commit | d3c2f77d295b1f0cb1ba868f46de126fe0f11af1 (patch) | |
tree | b1fdc08d21696d14c57c5ed36ac61da582fff11e | |
parent | 71c646801ae1b6125dbe8c80e260dd4d788c11f4 (diff) | |
download | xmlgraphics-fop-d3c2f77d295b1f0cb1ba868f46de126fe0f11af1.tar.gz xmlgraphics-fop-d3c2f77d295b1f0cb1ba868f46de126fe0f11af1.zip |
fix FOP-1616
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1872447 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java b/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java index fdcda090d..9bc1437dd 100644 --- a/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java +++ b/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java @@ -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; |