graph: fix xcolor reqs index.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Kanru Chen 2008-08-12 22:24:28 +08:00 committed by Julien Danjou
parent ca8d595bff
commit 553b03809f
1 changed files with 3 additions and 3 deletions

View File

@ -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);