graph: fix for missing allocation
resizing graph widgets (by setting the width parameter) was failing to update the caches draw_to and draw_from. I have attached a 2-line patch remedying this. The bug wasn't caught earlier because the default size, 80, is bigger than what people typically use. Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
27c80c1950
commit
1c147a6d76
|
@ -510,6 +510,8 @@ luaA_graph_newindex(lua_State *L, awesome_token_t token)
|
|||
{
|
||||
d->width = width;
|
||||
d->size = d->width - 2;
|
||||
p_realloc(&d->draw_from, d->size);
|
||||
p_realloc(&d->draw_to, d->size);
|
||||
for(int i = 0; i < d->plots.len; i++)
|
||||
{
|
||||
plot_t *plot = &d->plots.tab[i];
|
||||
|
|
Loading…
Reference in New Issue