From 456dc4d368bf65c38c8da94b55acba0eb19f49dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alain=20B=C3=A9arez?= Date: Fri, 27 Mar 2020 03:13:43 +0000 Subject: [PATCH] Access table cell border style as line properties git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875748 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/xslf/usermodel/XSLFTable.java | 5 ++--- .../apache/poi/xslf/usermodel/XSLFTableCell.java | 13 +++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java index a28d339fce..5f64a56260 100644 --- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java +++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java @@ -90,11 +90,10 @@ public class XSLFTable extends XSLFGraphicFrame implements Iterable rows = getRows(); - if (row < 0 || rows.size() <= row) { + if (row < 0 || _rows.size() <= row) { return null; } - XSLFTableRow r = rows.get(row); + XSLFTableRow r = _rows.get(row); if (r == null) { // empty row return null; diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTableCell.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTableCell.java index 76f5a0d92b..d30bfa5521 100644 --- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTableCell.java +++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTableCell.java @@ -33,6 +33,7 @@ import org.apache.poi.sl.usermodel.StrokeStyle.LineDash; import org.apache.poi.sl.usermodel.TableCell; import org.apache.poi.sl.usermodel.VerticalAlignment; import org.apache.poi.util.Units; +import org.apache.poi.xddf.usermodel.XDDFLineProperties; import org.apache.poi.xddf.usermodel.text.XDDFTextBody; import org.apache.poi.xslf.usermodel.XSLFPropertiesDelegate.XSLFFillProperties; import org.apache.poi.xslf.usermodel.XSLFTableStyle.TablePartStyle; @@ -139,6 +140,18 @@ public class XSLFTableCell extends XSLFTextShape implements TableCell