From: Jim Evins Date: Sun, 25 Oct 2009 20:55:20 +0000 (-0400) Subject: Start new path when drawing round labels X-Git-Tag: glabels-2_2_6~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8fe92bd1ae20ab937f2a5de135c80d92e4c685eb;p=glabels Start new path when drawing round labels Start new path when drawing round labels. This fixes a bug, where if the top most object is a text object, an extras line would be drawn. --- diff --git a/src/cairo-label-path.c b/src/cairo-label-path.c index 1bc194ac..7f8f61f9 100644 --- a/src/cairo-label-path.c +++ b/src/cairo-label-path.c @@ -187,6 +187,7 @@ gl_cairo_round_label_path (cairo_t *cr, waste = 0.0; } + cairo_new_path (cr); cairo_arc (cr, w/2, h/2, w/2+waste, 0.0, 2*G_PI); cairo_close_path (cr);