From 51e12de65d96cb1568767769916d5d2b29fcf5ac Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Fri, 16 Jun 2006 15:03:01 +0000 Subject: [PATCH] Tweak comments git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@414846 13f79535-47bb-0310-9956-ffa450edef68 --- src/scratchpad/src/org/apache/poi/hslf/model/TextRun.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.39.5