diff --git a/fine-itext/src/com/fr/third/v2/lowagie/text/html/simpleparser/IncTable.java b/fine-itext/src/com/fr/third/v2/lowagie/text/html/simpleparser/IncTable.java index 52164fdc2..5da1eb4ca 100644 --- a/fine-itext/src/com/fr/third/v2/lowagie/text/html/simpleparser/IncTable.java +++ b/fine-itext/src/com/fr/third/v2/lowagie/text/html/simpleparser/IncTable.java @@ -171,10 +171,11 @@ public class IncTable { ArrayList cols = (ArrayList) rows.get(rowIndex); for (int colIndex = 0; colIndex < cols.size(); colIndex++) { PdfPCell pCell = ((PdfPCell) cols.get(colIndex)); + int cellCols = pCell.getColspan(); float avgWidth = pCell.getStyleWidth() / cellCols; for (int i = 0; i < cellCols && colIndex + i < colCount; i++) { - if (relativeColWidths.get(i) < avgWidth) { + if (relativeColWidths.get(colIndex + i) < avgWidth) { relativeColWidths.set(colIndex + i, avgWidth); } }