Changeset 6770

Show
Ignore:
Timestamp:
05.10.2006 11:32:35 (3 years ago)
Author:
anp
Message:

Répercution 6769 sur 3.2.x

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/3.2.x/Jav_Oo/com/scenari/s/oo/transform/TransformerOd2Props.java

    r6243 r6770  
    278278                        XDrawPage vDrawPage = (XDrawPage) UnoRuntime.queryInterface(XDrawPage.class, vIndexedDrawPages.getByIndex(i)); 
    279279                        XShape vGroup = ((XShapeGrouper) UnoRuntime.queryInterface(XShapeGrouper.class, vDrawPage)).group((XShapes) UnoRuntime.queryInterface(XShapes.class, vDrawPage)); 
    280                         Size vSize = vGroup.getSize(); 
    281280                        pXmlWriter.hWriteStartTag("page"); 
    282281                        // System.out.println("WGroup="+vSize.Width+" 
    283282                        // -HGroup="+vSize.Height); 
    284                         pXmlWriter.hWriteAttribut("width", Integer.toString(vSize.Width)); 
    285                         pXmlWriter.hWriteAttribut("height", Integer.toString(vSize.Height)); 
     283                        if(vGroup!=null){ 
     284                Size vSize = vGroup.getSize(); 
     285                pXmlWriter.hWriteAttribut("width", Integer.toString(vSize.Width)); 
     286                pXmlWriter.hWriteAttribut("height", Integer.toString(vSize.Height)); 
     287            }else{ 
     288                pXmlWriter.hWriteAttribut("width", "0"); 
     289                pXmlWriter.hWriteAttribut("height", "0"); 
     290            } 
    286291                        pXmlWriter.hWriteEndEmptyTag(); 
    287292                }