mirror of https://github.com/apache/poi.git
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:
parent
8d9378a867
commit
4e663c4b5d
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue