Author: onealj
Date: Wed Feb  8 09:23:04 2017
New Revision: 1782130

URL: http://svn.apache.org/viewvc?rev=1782130&view=rev
Log:
Per JavaDoc and tallison, XWPFTableCell#getVerticalAlignment() should return 
null if valign is not set. Patch from prasad-babu. This closes #30 on GitHub.
https://github.com/apache/poi/pull/30#issuecomment-186224438

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java

Modified: 
poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java?rev=1782130&r1=1782129&r2=1782130&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java 
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java 
Wed Feb  8 09:23:04 2017
@@ -236,11 +236,6 @@ public class XWPFTableCell implements IB
             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;



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to