don't allow ncol to be <= 0

This commit is contained in:
Julien Danjou 2007-12-16 18:07:02 +01:00
parent f0f522bd47
commit 4577c64ec4
1 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,8 @@ _tile(int screen, const Bool right)
else else
mh = mw = 0; mh = mw = 0;
real_ncol = MIN(otherwin, curtag->ncol); if((real_ncol = MIN(otherwin, curtag->ncol) <= 0))
real_ncol = 1;
for(i = 0, c = globalconf.clients; c; c = c->next) for(i = 0, c = globalconf.clients; c; c = c->next)
{ {