The slide contains 2 text boxes and 1 xls chart.

The casting fails when the lst.get(i) command returns an instance of
EscherOptRecord, when EscherContainerRecord is expected.



-----Original Message-----
From: Yegor Kozlov [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 4:26 PM
To: POI Users List
Subject: Re[2]: org.apache.poi.hslf.model.ShapeGroup - getShapes()


What shapes do you have in the slide?
Text boxes, rectangles or something more complex, for example, polygons
or custom shapes?



NB> On Tue, 26 Sep 2006, Erez Eisenstein wrote:
>> class java.lang.ClassCastException -
org.apache.poi.ddf.EscherOptRecord
>>
>> java.lang.ClassCastException: org.apache.poi.ddf.EscherOptRecord at
>> org.apache.poi.hslf.model.ShapeGroup.getShapes(ShapeGroup.java:59)

NB> Looks like we were just expecting the shape to be made up of 
NB> EscherContainerRecords, but they aren't always.

NB> I've applied a fix, but it would be good if you could upload the 
NB> powerpoint file to bugzilla. That way, we'll have something to test
my fix 
NB> against, and make sure it's still sane

NB> Nick

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


---------------------------------------------------------------------
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/


---------------------------------------------------------------------
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