summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bowditch <cbowditch@apache.org>2020-01-07 16:00:06 +0000
committerChris Bowditch <cbowditch@apache.org>2020-01-07 16:00:06 +0000
commitd3c2f77d295b1f0cb1ba868f46de126fe0f11af1 (patch)
treeb1fdc08d21696d14c57c5ed36ac61da582fff11e
parent71c646801ae1b6125dbe8c80e260dd4d788c11f4 (diff)
downloadxmlgraphics-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.java9
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;