Fix a possible segfault in bar sizing

This commit is contained in:
Kris Maglione 2006-06-29 23:09:47 -04:00
parent 8b1e64bb50
commit 4c6e737870
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ draw_bar(WMScreen *s)
if(tb->brush.rect.width * shrink >= tb->smaller->brush.rect.width)
break;
}
if(tb)
for(b=largest; b != tb->smaller; b=b->smaller)
b->brush.rect.width = floor(b->brush.rect.width * shrink);
width += tw * shrink;