Fix accidental press of delete :-s

svn path=/trunk/netsurf/; revision=2852
This commit is contained in:
Richard Wilson 2006-08-15 19:33:42 +00:00
parent 8852cdd109
commit fdbb855a9c
1 changed files with 1 additions and 1 deletions

View File

@ -625,7 +625,7 @@ int parse_length(struct css_length * const length,
if ((v->type != CSS_NODE_DIMENSION) && (v->type != CSS_NODE_NUMBER))
return 1;
num_length = strspn(v->data, "0123456789+-.");
if (v->type == CSS_NODE_DIMENSION)
if (v->type == CSS_NODE_DIMENSION) {
u = css_unit_parse(v->data + num_length, v->data_length - num_length);
if (u == CSS_UNIT_UNKNOWN) {
return 1;