mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
LibWeb: Avoid division by zero in distribute_width_to_columns
This commit is contained in:
parent
d331cbba41
commit
5966f181f5
1 changed files with 3 additions and 0 deletions
|
@ -289,6 +289,9 @@ void TableFormattingContext::distribute_width_to_columns()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (total_preferred_width_increment == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
for (auto& column : m_columns) {
|
for (auto& column : m_columns) {
|
||||||
if (column.type == column_type) {
|
if (column.type == column_type) {
|
||||||
CSSPixels preferred_width_increment = column_preferred_width(column) - column.min_width;
|
CSSPixels preferred_width_increment = column_preferred_width(column) - column.min_width;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue