From ab0220274e571d79a25bcff86051e18486fb945a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 2 Mar 2009 14:20:08 +0100 Subject: [PATCH] graph: check width value (FS#465) Signed-off-by: Julien Danjou --- widgets/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/graph.c b/widgets/graph.c index a8e0505e3..c5624c9a8 100644 --- a/widgets/graph.c +++ b/widgets/graph.c @@ -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;