From: Nick Burch Date: Fri, 16 Jun 2006 15:03:01 +0000 (+0000) Subject: Tweak comments X-Git-Tag: REL_3_0_ALPHA3~89 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=51e12de65d96cb1568767769916d5d2b29fcf5ac;p=poi.git Tweak comments git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@414846 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hslf/model/TextRun.java b/src/scratchpad/src/org/apache/poi/hslf/model/TextRun.java index a245ea4b9c..0a9144fd90 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/model/TextRun.java +++ b/src/scratchpad/src/org/apache/poi/hslf/model/TextRun.java @@ -84,11 +84,11 @@ public class TextRun String runRawText = getText(); // Figure out the rich text runs - // Assumes the paragraph styles are never shorter than the character ones LinkedList pStyles = new LinkedList(); LinkedList cStyles = new LinkedList(); if(_styleAtom != null) { - _styleAtom.setParentTextSize(runRawText.length()); + // Get the style atom to grok itself + _styleAtom.setParentTextSize(runRawText.length()+1); pStyles = _styleAtom.getParagraphStyles(); cStyles = _styleAtom.getCharacterStyles(); }