dwm-meillo

diff view.c @ 611:c7f84f23ec5a

hotfix of a serious crashing bug
author arg@mig29
date Mon, 04 Dec 2006 21:00:26 +0100
parents f7dcd3ac8d6f
children 276238ad9516
line diff
     1.1 --- a/view.c	Mon Dec 04 15:39:43 2006 +0100
     1.2 +++ b/view.c	Mon Dec 04 21:00:26 2006 +0100
     1.3 @@ -234,7 +234,8 @@
     1.4  
     1.5  	for(i = 0; i < ntags; i++)
     1.6  		seltag[i] = (arg->i == -1) ? True : False;
     1.7 -	seltag[arg->i] = True;
     1.8 +	if(arg->i >= 0 && arg->i < ntags)
     1.9 +		seltag[arg->i] = True;
    1.10  	arrange();
    1.11  }
    1.12