graph: check width value (FS#465)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
e81fd419c3
commit
ab0220274e
|
@ -505,7 +505,7 @@ luaA_graph_newindex(lua_State *L, awesome_token_t token)
|
|||
break;
|
||||
case A_TK_WIDTH:
|
||||
width = luaL_checknumber(L, 3);
|
||||
if(width != d->width)
|
||||
if(width >= 2 && width != d->width)
|
||||
{
|
||||
d->width = width;
|
||||
d->size = d->width - 2;
|
||||
|
|
Loading…
Reference in New Issue