poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39177] - Bug: TextRun.setText sets incorrect length of text in the underlying StyleTextPropAtom.
Date Wed, 12 Apr 2006 18:21:27 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39177>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39177





------- Additional Comments From yegor@dinom.ru  2006-04-12 19:21 -------
(In reply to comment #4)
> We also need a tweak to the last RichTextRun, to make that 1 longer too
> 
> I've committed a fix that covers both, along with some tests to ensure we don't
> break things on re-writes.

Hi Nick,

I was writing this post when you commited the fix. 
It looks like the problem is fixed. 

Below is an extract from what I was going to post, just to repeat it once more:

The sum of length of all text runs must equal to total length of the text plus 1.
The last text run always contains an extra character which defines styling of a
new text 
which is appended to the end. This rule works both for character and paragraph
styles. I.e. 
the sum of length of all character styles must be equal to rawtext.length +1
and the sum of length of all paragraph styles must be equal to rawtext.length +1.

It makes sense to reflect it in the documentation. Text styling is one of the
most weird things in PPT. Even if you look at the working code it's extremely
hard to figure out why it has the extra character at the end.

Best Regards, Yegor

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message