Fix NPE when calling HSLFTextRun.setHorizontalCentered()

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1725022 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2016-01-16 19:27:58 +00:00
parent c1263423cf
commit 79920b06eb

View File

@ -66,7 +66,7 @@ implements TextShape<HSLFShape,HSLFTextParagraph> {
MIDDLE (1, VerticalAlignment.MIDDLE, false, false),
BOTTOM (2, VerticalAlignment.BOTTOM, false, false),
TOP_CENTER (3, VerticalAlignment.TOP, true, false),
MIDDLE_CENTER (4, VerticalAlignment.MIDDLE, true, null),
MIDDLE_CENTER (4, VerticalAlignment.MIDDLE, true, false),
BOTTOM_CENTER (5, VerticalAlignment.BOTTOM, true, false),
TOP_BASELINE (6, VerticalAlignment.TOP, false, true),
BOTTOM_BASELINE (7, VerticalAlignment.BOTTOM, false, true),