mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
LibWeb: Avoid division by zero in distribute_width_to_columns
This commit is contained in:
parent
d331cbba41
commit
5966f181f5
|
@ -289,6 +289,9 @@ void TableFormattingContext::distribute_width_to_columns()
|
|||
}
|
||||
}
|
||||
|
||||
if (total_preferred_width_increment == 0)
|
||||
return;
|
||||
|
||||
for (auto& column : m_columns) {
|
||||
if (column.type == column_type) {
|
||||
CSSPixels preferred_width_increment = column_preferred_width(column) - column.min_width;
|
||||
|
|
Loading…
Reference in a new issue