[project @ 2004-05-21 17:08:48 by bursa]

Improve multilength parsing.

svn path=/import/netsurf/; revision=881
This commit is contained in:
James Bursa 2004-05-21 17:08:48 +00:00
parent 8b78a7803d
commit fe2a9961df
1 changed files with 2 additions and 0 deletions

View File

@ -2572,6 +2572,8 @@ struct box_multi_length *box_parse_multi_lengths(const char *s,
return 0;
for (i = 0; i != n; i++) {
while (isspace(*s))
s++;
length[i].value = strtof(s, &end);
if (length[i].value <= 0)
length[i].value = 1;