Hi all,

here is a diff for the Table.java with a solution for:
1 Table with 1 Cell and an inner Table with 1 Cell

it throws an Class cast exeption while the inner table are not converted
It seems that the if of the different row or cell can be redused only to isTable but I had leave it in.


Requards Klaus Bertram
Index: Table.java
===================================================================
RCS file: /cvsroot/itext/src/com/lowagie/text/Table.java,v
retrieving revision 1.109
diff -r1.109 Table.java
1245c1245
< 
---
>                               boolean isTable=false;
1256c1256
<                 if ( Table.class.isInstance(((Row) rows.get(i)).getCell(j)) ) {
---
>                 if ( Table.class.isInstance(((Row) rows.get(i)).getCell(j)) ) {
                                                                                
isTable=true;
1272c1272
<                 if ( Table.class.isInstance(((Row) rows.get(i)).getCell(j)) ) {
---
>                 if ( Table.class.isInstance(((Row) rows.get(i)).getCell(j)) ) {
                                                                                
isTable=true;
1283c1283
<         if ( (lTotalColumns != columns) || (lTotalRows != rows.size()) )    // NO 
ADJUSTMENT
---
>         if ( (lTotalColumns != columns) || (lTotalRows != rows.size()) || isTable)   
>  // NO ADJUSTMENT

Reply via email to