Ignore:
Timestamp:
06/12/11 05:57:53 (12 months ago)
Author:
jharrop
Message:

Set @loTypeId

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/DrawingML/DiagramDataUnflatten.java

    r1534 r1542  
    9898        public SmartArtDataHierarchy convert() { 
    9999                 
     100                SmartArtDataHierarchy smartArtDataHierarchy  
     101                = factory.createSmartArtDataHierarchy(); 
     102 
    100103                CTPt docPt = ptList.getPt().get(0); 
     104                 
     105                if (docPt.getPrSet()!=null 
     106                                && docPt.getPrSet().getLoTypeId()!=null) { 
     107 
     108                        smartArtDataHierarchy.setLoTypeId( 
     109                                        docPt.getPrSet().getLoTypeId() );                        
     110                } else { 
     111                        log.error("Couldn't read @loTypeId"); 
     112                } 
    101113                 
    102114                org.opendope.SmartArt.dataHierarchy.List docList = factory.createList(); 
     
    110122                processChildrenOf(docPt, listItem); 
    111123                 
    112                 SmartArtDataHierarchy smartArtDataHierarchy  
    113                         = factory.createSmartArtDataHierarchy(); 
    114124                 
    115125                smartArtDataHierarchy.setList(docList); 
    116126                smartArtDataHierarchy.setImages(images); 
    117127                smartArtDataHierarchy.setTexts(texts); 
     128                 
    118129                 
    119130                return smartArtDataHierarchy; 
Note: See TracChangeset for help on using the changeset viewer.