Author: nick
Date: Fri Jun 16 08:03:01 2006
New Revision: 414846

URL: http://svn.apache.org/viewvc?rev=414846&view=rev
Log:
Tweak comments

Modified:
    jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/TextRun.java

Modified: 
jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/TextRun.java
URL: 
http://svn.apache.org/viewvc/jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/TextRun.java?rev=414846&r1=414845&r2=414846&view=diff
==============================================================================
--- jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/TextRun.java 
(original)
+++ jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/TextRun.java 
Fri Jun 16 08:03:01 2006
@@ -84,11 +84,11 @@
                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();
                }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/

Reply via email to