mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Fix assertion when table has negative mbp (1579981)
svn path=/trunk/netsurf/; revision=3222
This commit is contained in:
parent
cabed36421
commit
a96ef2a906
@ -2358,6 +2358,10 @@ void layout_minmax_table(struct box *table)
|
||||
/* add margins, border, padding to min, max widths */
|
||||
calculate_mbp_width(table->style, LEFT, &extra_fixed, &extra_frac);
|
||||
calculate_mbp_width(table->style, RIGHT, &extra_fixed, &extra_frac);
|
||||
if (extra_fixed < 0)
|
||||
extra_fixed = 0;
|
||||
if (extra_frac < 0)
|
||||
extra_frac = 0;
|
||||
if (1.0 <= extra_frac)
|
||||
extra_frac = 0.9;
|
||||
table->min_width = (table_min + extra_fixed) / (1.0 - extra_frac);
|
||||
|
Loading…
Reference in New Issue
Block a user