fixed typo in newcolw_of_view()

This commit is contained in:
Anselm R. Garbe 2006-06-08 13:14:33 +02:00
parent 88d1c80edb
commit e9b5f193bf

View File

@ -396,7 +396,7 @@ newcolw_of_view(View *v)
char *toks[16];
cext_strlcpy(buf, r->value, sizeof(buf));
n = cext_tokenize(toks, 16, buf, '+');
for(a=v->area, i=0; a; a=a->next, i--);
for(a=v->area, i=0; a; a=a->next, i++);
if(n && n > i - 1) {
if(sscanf(toks[i - 1], "%u", &n) == 1)
return (rect.width * n) / 100;