]> source.dussan.org Git - poi.git/commitdiff
Tweak comments
authorNick Burch <nick@apache.org>
Fri, 16 Jun 2006 15:03:01 +0000 (15:03 +0000)
committerNick Burch <nick@apache.org>
Fri, 16 Jun 2006 15:03:01 +0000 (15:03 +0000)
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

index a245ea4b9c5327dea1fd892f6de3c62047f4d0a0..0a9144fd907eba702701d94718dd8188dd8d7e22 100644 (file)
@@ -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();
                }