Ignore:
Timestamp:
08/05/11 01:22:49 (10 months ago)
Author:
jharrop
Message:

findImageData() use XmlUtils?.unwrap so a bit cleaner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/model/images/WordXmlPictureE10.java

    r1631 r1635  
    138138        } else { 
    139139                for (Object o : shape.getPathOrFormulasOrHandles() ) { 
    140                         if (o instanceof JAXBElement ) { 
    141                                 JAXBElement jb = (JAXBElement)o; 
    142                                 if (jb.getDeclaredType().getName().equals("org.docx4j.vml.CTImageData")) { 
    143                                         imageData = (CTImageData)jb.getValue(); 
    144                                         break; 
    145                                 } else { 
    146                                         log.debug("Skipping " + 
    147                                                         XmlUtils.JAXBElementDebug((JAXBElement)o) 
    148                                                         ); 
    149                                 } 
     140                         
     141                        Object o2 = XmlUtils.unwrap(o); 
     142                        if (o2 instanceof org.docx4j.vml.CTImageData) { 
     143                                        imageData = (CTImageData)o2; 
     144                                        break; 
    150145                        } else { 
    151146                                log.error( o.getClass().getName() ); 
Note: See TracChangeset for help on using the changeset viewer.