From: ellson Date: Thu, 6 Dec 2007 14:12:13 +0000 (+0000) Subject: fix bug with sign of radius value in mapping of circles X-Git-Tag: LAST_LIBGRAPH~32^2~4986 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7356ccca4861194d510b3566a554247213510033;p=graphviz fix bug with sign of radius value in mapping of circles reported by: Skye Bender-deMoll (and Greg) --- diff --git a/lib/common/emit.c b/lib/common/emit.c index 14523e4a8..d1e4eeafa 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -1067,8 +1067,9 @@ static void emit_begin_node(GVJ_t * job, node_t * n) p = N_NEW(nump, pointf); p[0].x = coord.x; p[0].y = coord.y; - p[1].x = coord.x + vertices[peripheries - 1].x; - p[1].y = coord.y + vertices[peripheries - 1].y; + /* ... but vertices contains LL cornet of bb */ + p[1].x = coord.x - vertices[peripheries - 1].x; + p[1].y = coord.y - vertices[peripheries - 1].y; } else { /* ellipse is treated as polygon */ obj->url_map_shape= MAP_POLYGON; @@ -1078,7 +1079,7 @@ static void emit_begin_node(GVJ_t * job, node_t * n) p[i].x += coord.x; p[i].y += coord.y; } - } + } } /* all other polygonal shape */ else {