Mercurial > dwm-meillo
comparison tag.c @ 611:c7f84f23ec5a 2.5.1
hotfix of a serious crashing bug
author | arg@mig29 |
---|---|
date | Mon, 04 Dec 2006 21:00:26 +0100 |
parents | dcbbfabc8ecc |
children | e90bf387bf6f |
comparison
equal
deleted
inserted
replaced
610:29f7d5cc996c | 611:c7f84f23ec5a |
---|---|
112 | 112 |
113 if(!sel) | 113 if(!sel) |
114 return; | 114 return; |
115 for(i = 0; i < ntags; i++) | 115 for(i = 0; i < ntags; i++) |
116 sel->tags[i] = (arg->i == -1) ? True : False; | 116 sel->tags[i] = (arg->i == -1) ? True : False; |
117 sel->tags[arg->i] = True; | 117 if(arg->i >= 0 && arg->i < ntags) |
118 sel->tags[arg->i] = True; | |
118 arrange(); | 119 arrange(); |
119 } | 120 } |
120 | 121 |
121 void | 122 void |
122 toggletag(Arg *arg) { | 123 toggletag(Arg *arg) { |