From 553b03809f96d628cf635d880594a1876f0e8077 Mon Sep 17 00:00:00 2001 From: Kanru Chen Date: Tue, 12 Aug 2008 22:24:28 +0800 Subject: [PATCH] graph: fix xcolor reqs index. Signed-off-by: Julien Danjou --- widgets/graph.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widgets/graph.c b/widgets/graph.c index 8ae55f6a..ae56ef0a 100644 --- a/widgets/graph.c +++ b/widgets/graph.c @@ -302,19 +302,19 @@ luaA_graph_plot_properties_set(lua_State *L) plot = graph_plot_add(d, title); if((buf = luaA_getopt_lstring(L, 3, "fg", NULL, &len))) - reqs[reqs_nbr] = xcolor_init_unchecked(globalconf.connection, + reqs[++reqs_nbr] = xcolor_init_unchecked(globalconf.connection, &plot->color_start, globalconf.default_screen, buf, len); if((buf = luaA_getopt_lstring(L, 3, "fg_center", NULL, &len))) - reqs[reqs_nbr] = xcolor_init_unchecked(globalconf.connection, + reqs[++reqs_nbr] = xcolor_init_unchecked(globalconf.connection, &plot->pcolor_center, globalconf.default_screen, buf, len); if((buf = luaA_getopt_lstring(L, 3, "fg_end", NULL, &len))) - reqs[reqs_nbr] = xcolor_init_unchecked(globalconf.connection, + reqs[++reqs_nbr] = xcolor_init_unchecked(globalconf.connection, &plot->pcolor_end, globalconf.default_screen, buf, len);