[glabels/glabels_2_2] Start new path when drawing round labels
- From: Jim Evins <jimevins src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glabels/glabels_2_2] Start new path when drawing round labels
- Date: Sun, 25 Oct 2009 20:57:54 +0000 (UTC)
commit 8fe92bd1ae20ab937f2a5de135c80d92e4c685eb
Author: Jim Evins <evins snaught com>
Date: Sun Oct 25 16:55:20 2009 -0400
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/cairo-label-path.c b/src/cairo-label-path.c
index 1bc194a..7f8f61f 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]