]> git.sur5r.net Git - glabels/commitdiff
Start new path when drawing round labels
authorJim Evins <evins@snaught.com>
Sun, 25 Oct 2009 20:55:20 +0000 (16:55 -0400)
committerJim Evins <evins@snaught.com>
Sun, 25 Oct 2009 20:55:20 +0000 (16:55 -0400)
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

index 1bc194ac78894f647a8e73ca385fed00298fee2a..7f8f61f934d2f0fe08bd971d3d252171b3b4b428 100644 (file)
@@ -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);