mirror of https://github.com/0intro/wmii
s/n > i - 1/n >= i/
This commit is contained in:
parent
e9b5f193bf
commit
643a3f14f6
|
@ -397,7 +397,7 @@ newcolw_of_view(View *v)
|
|||
cext_strlcpy(buf, r->value, sizeof(buf));
|
||||
n = cext_tokenize(toks, 16, buf, '+');
|
||||
for(a=v->area, i=0; a; a=a->next, i++);
|
||||
if(n && n > i - 1) {
|
||||
if(n && n >= i) {
|
||||
if(sscanf(toks[i - 1], "%u", &n) == 1)
|
||||
return (rect.width * n) / 100;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue