mirror of https://github.com/apache/poi.git
Create empty StyleTextPropAtoms correctly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@386975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9904ebb14d
commit
5b7f7eb4e3
|
@ -293,8 +293,8 @@ public class TextRun
|
|||
return;
|
||||
}
|
||||
|
||||
// Create a new one
|
||||
_styleAtom = new StyleTextPropAtom(0);
|
||||
// Create a new one at the right size
|
||||
_styleAtom = new StyleTextPropAtom(getRawText().length());
|
||||
|
||||
// Use the TextHeader atom to get at the parent
|
||||
RecordContainer runAtomsParent = _headerAtom.getParentRecord();
|
||||
|
|
|
@ -173,7 +173,7 @@ public class StyleTextPropAtom extends RecordAtom
|
|||
paragraphStyles = new LinkedList();
|
||||
charStyles = new LinkedList();
|
||||
|
||||
TextPropCollection defaultParagraphTextProps = new TextPropCollection(parentTextSize);
|
||||
TextPropCollection defaultParagraphTextProps = new TextPropCollection(parentTextSize, (short)0);
|
||||
paragraphStyles.add(defaultParagraphTextProps);
|
||||
|
||||
TextPropCollection defaultCharacterTextProps = new TextPropCollection(parentTextSize);
|
||||
|
|
Loading…
Reference in New Issue