mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 15:29:45 +03:00
[project @ 2004-05-21 17:08:48 by bursa]
Improve multilength parsing. svn path=/import/netsurf/; revision=881
This commit is contained in:
parent
8b78a7803d
commit
fe2a9961df
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user