]> source.dussan.org Git - poi.git/commitdiff
Per JavaDoc and tallison, XWPFTableCell#getVerticalAlignment() should return null...
authorJaven O'Neal <onealj@apache.org>
Wed, 8 Feb 2017 09:23:04 +0000 (09:23 +0000)
committerJaven O'Neal <onealj@apache.org>
Wed, 8 Feb 2017 09:23:04 +0000 (09:23 +0000)
https://github.com/apache/poi/pull/30#issuecomment-186224438

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1782130 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java

index a20fe5220ade5c8587741f1d6a74a05ec2fe3a15..27f2c43ad7c8d0cac73fa73826fc771a469b12b6 100644 (file)
@@ -236,11 +236,6 @@ public class XWPFTableCell implements IBody, ICell {
             CTVerticalJc va = tcpr.getVAlign();
             if(va != null) {
                 vAlign = stVertAlignTypeMap.get(va.getVal().intValue());
-            } else {
-                vAlign = XWPFVertAlign.TOP;
-            }
-            if (va != null && va.getVal() != null) {
-                vAlign = stVertAlignTypeMap.get(va.getVal().intValue());
             }
         }
         return vAlign;