Skip to content

Commit d25f3ae

Browse files
committed
Check for undefined widths on column tables
1 parent f1c5267 commit d25f3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/layout_element.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class TableLayoutElement extends LayoutElement {
4040
return FractionColumnWidth(width);
4141
} else {
4242
final width = double.tryParse(widthStr);
43-
return FixedColumnWidth(width);
43+
return width != null ? FixedColumnWidth(width) : null;
4444
}
4545
});
4646
})

0 commit comments

Comments
 (0)