From cde0c55db1b96cd925314e66d19556e0c57b97a6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 Jan 2013 05:44:02 +0000 Subject: Fix border width for circles. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4951 a436a847-0d15-0410-975c-d299462d15a1 --- src/circle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/circle.c b/src/circle.c index 68fa612..eb43166 100644 --- a/src/circle.c +++ b/src/circle.c @@ -170,7 +170,7 @@ request_redraw(GanvItem* item, const GanvCircleCoords* coords, gboolean world) { - const double w = coords->width; + const double w = coords->width; double x1 = coords->x - coords->radius - w; double y1 = coords->y - coords->radius - w; @@ -221,6 +221,7 @@ ganv_circle_update(GanvItem* item, int flags) { GanvCircle* circle = GANV_CIRCLE(item); GanvCircleImpl* impl = circle->impl; + impl->coords.width = circle->node.impl->border_width; GanvItemClass* item_class = GANV_ITEM_CLASS(parent_class); if (item_class->update) { -- cgit v1.2.1