From 8fe92bd1ae20ab937f2a5de135c80d92e4c685eb Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Sun, 25 Oct 2009 16:55:20 -0400 Subject: [PATCH] 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. --- src/cairo-label-path.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5