]> source.dussan.org Git - poi.git/commitdiff
Fix NPE when calling HSLFTextRun.setHorizontalCentered()
authorAndreas Beeker <kiwiwings@apache.org>
Sat, 16 Jan 2016 19:27:58 +0000 (19:27 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sat, 16 Jan 2016 19:27:58 +0000 (19:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1725022 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java

index fbe91040e8c5117f6bb95fb5c1cc29d0aedc5ddf..c90149854fcb3a4dbccc534457bcf4dcfb8ab0be 100644 (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),