]> source.dussan.org Git - poi.git/commitdiff
Fix one-off error at referencing adjust values for HSLF preset shapes
authorAndreas Beeker <kiwiwings@apache.org>
Mon, 14 Oct 2019 21:13:08 +0000 (21:13 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Mon, 14 Oct 2019 21:13:08 +0000 (21:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868460 13f79535-47bb-0310-9956-ffa450edef68

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

index 824122b565b7cdef3839d30cfc602f76efe78a22..dd7afa4f9af062901a6edbf03247911dd6fe03df 100644 (file)
@@ -337,7 +337,7 @@ public abstract class HSLFSimpleShape extends HSLFShape implements SimpleShape<H
         }
 
 
-        EscherPropertyTypes escherProp = ADJUST_VALUES[adjInt];
+        EscherPropertyTypes escherProp = ADJUST_VALUES[adjInt-1];
 
         int adjval = getEscherProperty(escherProp, -1);