From 527e6308c39539f43f3f684403af2d22d7722999 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 2 Mar 2009 17:42:55 +0100 Subject: [PATCH] graph: return if size is 0 (FS#466) Signed-off-by: Julien Danjou --- widgets/graph.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/widgets/graph.c b/widgets/graph.c index c5624c9a..722ed66a 100644 --- a/widgets/graph.c +++ b/widgets/graph.c @@ -372,6 +372,9 @@ luaA_graph_plot_data_add(lua_State *L) float value; int i; + if(!d->size) + return 0; + plot = graph_plot_get(d, title); /* assign incoming value */