From: Emden R. Gansner Date: Fri, 6 Jun 2014 18:28:58 +0000 (-0400) Subject: Fix bug in emitting background ellipses X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17d3ee5e4e38c308866eb69d0d4b482f3f9569fc;p=graphviz Fix bug in emitting background ellipses --- diff --git a/lib/common/emit.c b/lib/common/emit.c index d29533776..38b4fe4dc 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -1436,8 +1436,8 @@ static void emit_xdot (GVJ_t * job, xdot* xd) if (boxf_overlap(op->bb, job->clip)) { pts[0].x = op->op.u.ellipse.x - op->op.u.ellipse.w; pts[0].y = op->op.u.ellipse.y - op->op.u.ellipse.h; - pts[1].x = op->op.u.ellipse.w; - pts[1].y = op->op.u.ellipse.h; + pts[1].x = op->op.u.ellipse.x + op->op.u.ellipse.w; + pts[1].y = op->op.u.ellipse.y + op->op.u.ellipse.h; gvrender_ellipse(job, pts, 2, (op->op.kind == xd_filled_ellipse?filled:0)); } break;