add an extra check to create_area

This commit is contained in:
Sander van Dijk 2006-05-03 23:20:32 +00:00
parent 47b79d6f83
commit 7afc36f949
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ create_area(View *v)
}
else
w = rect.width;
if(w < MIN_COLWIDTH)
w = MIN_COLWIDTH;
if(v->area.size >= 2 && (v->area.size - 1) * MIN_COLWIDTH + w > rect.width)
return nil;