From 887ec868b74d535b7059e18971b86dda246a346e Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Wed, 11 Oct 2017 18:32:13 +0000 Subject: [PATCH] Fix aparent copy/paste error in XSSFBorderFormatting git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1811867 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/xssf/usermodel/XSSFBorderFormatting.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFBorderFormatting.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFBorderFormatting.java index 029729a4a..3d18cbec4 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFBorderFormatting.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFBorderFormatting.java @@ -159,7 +159,7 @@ public class XSSFBorderFormatting implements BorderFormatting { } @Override public short getTopBorderColor() { - return getIndexedColor(getRightBorderColorColor()); + return getIndexedColor(getTopBorderColorColor()); } /** @@ -416,7 +416,6 @@ public class XSSFBorderFormatting implements BorderFormatting { } /** - * @param borderPr * @return BorderStyle from the given element's style, or NONE if border is null */ private BorderStyle getBorderStyle(CTBorderPr borderPr) {