mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-02 01:04:33 +03:00
Layout: Fix min max pass calc that looked wrong.
The `width` variable call be set to AUTO, which is INT_MIN, so we can't add it to max without checking it's > 0, or we'll blunder into the minmax assertions.
This commit is contained in:
parent
af554fcedf
commit
473a40bc11
@ -836,7 +836,8 @@ layout_minmax_line(struct box *first,
|
||||
|
||||
if (min < width)
|
||||
min = width;
|
||||
max += width;
|
||||
if (width > 0)
|
||||
max += width;
|
||||
|
||||
*line_has_height = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user