Skip to content

Commit 0130b4f

Browse files
Exception is thrown on min-max width calculation for nested tables
DEVSIX-1321
1 parent 28cb366 commit 0130b4f

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,9 +1139,6 @@ protected TableRenderer[] split(int row, boolean hasContent, boolean cellWithBig
11391139
splitRenderer.countedColumnWidth = countedColumnWidth;
11401140
splitRenderer.totalWidthForColumns = totalWidthForColumns;
11411141
TableRenderer overflowRenderer = createOverflowRenderer(new Table.RowRange(rowRange.getStartRow() + row, rowRange.getFinishRow()));
1142-
if (0 == row && !(hasContent || cellWithBigRowspanAdded) && 0 == rowRange.getStartRow()) {
1143-
overflowRenderer.isOriginalNonSplitRenderer = true;
1144-
}
11451142
overflowRenderer.rows = rows.subList(row, rows.size());
11461143
splitRenderer.occupiedArea = occupiedArea;
11471144

layout/src/test/java/com/itextpdf/layout/TableTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ This file is part of the iText (R) project.
7272
import com.itextpdf.test.annotations.type.IntegrationTest;
7373
import org.junit.Assert;
7474
import org.junit.BeforeClass;
75-
import org.junit.Ignore;
7675
import org.junit.Test;
7776
import org.junit.experimental.categories.Category;
7877

@@ -2127,7 +2126,6 @@ public void nestedTableLostContent() throws IOException, InterruptedException {
21272126
}
21282127

21292128
@Test
2130-
@Ignore("DEVSIX-1321")
21312129
// When the test was created, an exception was thrown due to min-max width calculations for an inner table.
21322130
// At some point isOriginalNonSplitRenderer was true for a parent renderer but false for the inner table renderer
21332131
public void nestedTableMinMaxWidthException() throws IOException, InterruptedException {

0 commit comments

Comments
 (0)