Skip to content

Commit 667e2bb

Browse files
committed
Autoport fix
1 parent 46d43dc commit 667e2bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layout/src/main/java/com/itextpdf/layout/renderer/TableRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ private void correctCellsOccupiedAreas(LayoutResult[] splits, int row, int[] tar
20102010
float additionalCellHeight = 0;
20112011
if (isLastRenderer) {
20122012
if (null != blockMinHeight && blockMinHeight > occupiedArea.getBBox().getHeight() + bottomTableBorderWidth / 2) {
2013-
additionalCellHeight = Math.min(layoutBox.getHeight() - bottomTableBorderWidth / 2, blockMinHeight - occupiedArea.getBBox().getHeight() - bottomTableBorderWidth / 2) / heights.size();
2013+
additionalCellHeight = Math.min(layoutBox.getHeight() - bottomTableBorderWidth / 2, (float) blockMinHeight - occupiedArea.getBBox().getHeight() - bottomTableBorderWidth / 2) / heights.size();
20142014
for (int i = 0; i < heights.size(); i++) {
20152015
heights.set(i, heights.get(i) + additionalCellHeight);
20162016
}

0 commit comments

Comments
 (0)