]> source.dussan.org Git - poi.git/commitdiff
Fix aparent copy/paste error in XSSFBorderFormatting
authorDominik Stadler <centic@apache.org>
Wed, 11 Oct 2017 18:32:13 +0000 (18:32 +0000)
committerDominik Stadler <centic@apache.org>
Wed, 11 Oct 2017 18:32:13 +0000 (18:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1811867 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFBorderFormatting.java

index 029729a4a2247d6dcc8484273546c248c666b4e9..3d18cbec4e28fbbc6659e26e0266b1c51d55f9ee 100644 (file)
@@ -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) {