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:
Michael Drake 2018-04-02 20:23:30 +01:00
parent af554fcedf
commit 473a40bc11

View File

@ -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;
}