X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_gfx.c;h=c4236dec9f0b886621adc0babe18aff2be08549d;hb=0cab41a011f053fa84ac481849380f69ded26147;hp=c01a66187f52082bcb349884a1372ac0d1546b13;hpb=d874c8f117a7473562da5a6cf3873882c8c4dc2e;p=rrdtool.git diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c index c01a661..c4236de 100644 --- a/src/rrd_gfx.c +++ b/src/rrd_gfx.c @@ -331,7 +331,7 @@ void gfx_line_fit( cairo_user_to_device_distance(cr, &line_width, &line_height); line_width = line_width / 2.0 - ceil(line_width / 2.0); line_height = line_height / 2.0 - ceil(line_height / 2.0); - *x = ceil(*x - 0.5) - line_width; + *x = floor(*x - 0.5) - line_width; *y = ceil(*y + 0.5) + line_height; cairo_device_to_user(cr, x, y); }