Don't fallback to master shape properties, if master shape is not assigned

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859101 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2019-05-10 20:54:57 +00:00
parent 8d9378a867
commit 4e663c4b5d
1 changed files with 1 additions and 1 deletions

View 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();
}
/**