X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_gfx.c;h=865d018f50ba0145997e658e9f81c9762b467500;hb=c599a563ea124a5cece0a46c7db9120e12ddd7e6;hp=5315c1d55e6c0c8631b28942c2f7a25e982ff33f;hpb=c24cf5317f753d0bfb376835b4f907462a770384;p=rrdtool.git diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c index 5315c1d..865d018 100644 --- a/src/rrd_gfx.c +++ b/src/rrd_gfx.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.3rc9 Copyright by Tobi Oetiker, 1997-2008 + * RRDtool 1.3.1 Copyright by Tobi Oetiker, 1997-2008 **************************************************************************** * rrd_gfx.c graphics wrapper for rrdtool **************************************************************************/ @@ -46,10 +46,13 @@ void gfx_dashed_line( double dash_off) { cairo_t *cr = im->cr; - double dashes[] = { dash_on, dash_off }; + double dashes[2]; double x = 0; double y = 0; + dashes[0] = dash_on; + dashes[1] = dash_off; + cairo_save(cr); cairo_new_path(cr); cairo_set_line_width(cr, width);