glens       2005/05/05 06:05:09

  Modified:    src/examples/src/org/apache/poi/hssf/usermodel/examples
                        OfficeDrawing.java
  Log:
  There seems to be a bug with the current implementation that causes problems 
if you create a row but no sells.  This just works around that bug.
  
  Revision  Changes    Path
  1.5       +3 -0      
jakarta-poi/src/examples/src/org/apache/poi/hssf/usermodel/examples/OfficeDrawing.java
  
  Index: OfficeDrawing.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-poi/src/examples/src/org/apache/poi/hssf/usermodel/examples/OfficeDrawing.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- OfficeDrawing.java        1 May 2005 11:26:18 -0000       1.4
  +++ OfficeDrawing.java        5 May 2005 13:05:09 -0000       1.5
  @@ -57,6 +57,7 @@
           // Create a row and size one of the cells reasonably large.
           HSSFRow row = sheet1.createRow(2);
           row.setHeight((short) 2800);
  +        row.createCell( (short)1 );
           sheet1.setColumnWidth((short) 2, (short) 9000);
   
           // Create the drawing patriarch.  This is the top level container for
  @@ -78,6 +79,7 @@
       {
           // Create a row and size one of the cells reasonably large.
           HSSFRow row = sheet2.createRow(2);
  +        row.createCell( (short)1 );
           row.setHeightInPoints(240);
           sheet2.setColumnWidth((short) 2, (short) 9000);
   
  @@ -94,6 +96,7 @@
           // Create a row and size one of the cells reasonably large
           HSSFRow row = sheet3.createRow(2);
           row.setHeightInPoints(140);
  +        row.createCell( (short)1 );
           sheet3.setColumnWidth((short) 2, (short) 9000);
   
           // Create the drawing patriarch.  This is the top level container for
  
  
  

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