mirror of https://github.com/apache/poi.git
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 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1782130 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6028c9fa0e
commit
91cc13f771
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue