]> source.dussan.org Git - poi.git/commitdiff
Don't fallback to master shape properties, if master shape is not assigned
authorAndreas Beeker <kiwiwings@apache.org>
Fri, 10 May 2019 20:54:57 +0000 (20:54 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Fri, 10 May 2019 20:54:57 +0000 (20:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859101 13f79535-47bb-0310-9956-ffa450edef68

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

index f617955d101ab680a573d79b399030752b3e6751..710e8c16d869af75350d447f48a4c782f5ef2081 100644 (file)
@@ -347,7 +347,7 @@ implements TextShape<HSLFShape,HSLFTextParagraph> {
             return -1;
         }
         List<HSLFTextParagraph> paras = HSLFTextParagraph.findTextParagraphs(_txtbox, getSheet());
-        return (paras.isEmpty()) ? -1 : paras.get(0).getRunType();
+        return (paras.isEmpty() || paras.get(0).getIndex() == -1) ? -1 : paras.get(0).getRunType();
     }
 
     /**