File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
layout/src/main/java/com/itextpdf/layout/renderer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -743,12 +743,12 @@ public String toString() {
743
743
//TODO DEVSIX-1174, box-sizing property
744
744
UnitValue getCellWidth (CellRenderer cell , boolean zeroIsValid ) {
745
745
UnitValue widthValue = cell .<UnitValue >getProperty (Property .WIDTH );
746
- if (widthValue == null || widthValue .getValue () < 0 ) return null ;
747
746
//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 ) {
749
750
return zeroIsValid ? ZeroWidth : null ;
750
- }
751
- if (widthValue == null || widthValue .isPercentValue ()) {
751
+ } else if (widthValue .isPercentValue ()) {
752
752
return widthValue ;
753
753
} else {
754
754
Border [] borders = cell .getBorders ();
You can’t perform that action at this time.
0 commit comments