Skip to content

Commit b7b70a8

Browse files
committed
Update cmp files
DEVSIX-1252
1 parent d46e7b9 commit b7b70a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -743,12 +743,12 @@ public String toString() {
743743
//TODO DEVSIX-1174, box-sizing property
744744
UnitValue getCellWidth(CellRenderer cell, boolean zeroIsValid) {
745745
UnitValue widthValue = cell.<UnitValue>getProperty(Property.WIDTH);
746-
if (widthValue == null || widthValue.getValue() < 0) return null;
747746
//zero has special meaning in fixed layout, we shall not add padding to zero value
748-
if (widthValue.getValue() == 0) {
747+
if (widthValue == null || widthValue.getValue() < 0) {
748+
return null;
749+
} else if (widthValue.getValue() == 0) {
749750
return zeroIsValid ? ZeroWidth : null;
750-
}
751-
if (widthValue == null || widthValue.isPercentValue()) {
751+
} else if (widthValue.isPercentValue()) {
752752
return widthValue;
753753
} else {
754754
Border[] borders = cell.getBorders();

0 commit comments

Comments
 (0)