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 39547] - HSLF: IndexOutOfBoundsException in TextRun constructor
Date Mon, 29 May 2006 15:42:45 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=39547>.
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=39547





------- Additional Comments From yegor@dinom.ru  2006-05-29 15:42 -------
Nick,

(1) I had to comment a line in StyleTextPropAtom.setParentTextSize:

                        // Handle extra 1 char styles at the end
                        if(pos < rawContents.length && textHandled == size) {
                                //size++; //do we need this code? 
                        }

It results in errors as described above. Do you have examples when this code
works properly and we need it?
All test cases pass, I can add text to a slide and see it in PPT. 

(2)  Finally I found how to get slides in the correct order: the order of slides
is defined by
the order in which slides are listed in SlideListWithText.  I'm 99% sure it is so.
I did lots of tests and this rule seems OK. 
BTW: There are potential bugs in SlideShow.buildSlidesAndNotes.
To get slides and atoms we need only the second SlideListWithText, not all.

There can be several SlideListWithText containers:
 - SlideListWithText[0]:  always present. Contains MainMaster and TitleMaster
objects.
 Since PowerPoint 2003 there can be multiple masters and this is the place where
their references are stored.
- SlideListWithText[1]:  Always exists if a ppt contains at least one slide. 
Stores slides and slide atoms
- SlideListWithText[2] (if any): Stores other objects like notes, handouts, etc.

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