From 39180176da657656abc7f7f90adf894b85aeabee Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Fri, 12 Aug 2016 17:18:29 -0400 Subject: [PATCH] Edges attached to a cluster were not getting assigned an index number. --- plugin/core/gvrender_core_json.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/core/gvrender_core_json.c b/plugin/core/gvrender_core_json.c index 3c7682579..b886ac77f 100644 --- a/plugin/core/gvrender_core_json.c +++ b/plugin/core/gvrender_core_json.c @@ -679,9 +679,9 @@ static void write_graph(Agraph_t * g, GVJ_t * job, int top, state_t* sp) } else { ND_gid(np) = sgcnt + ncnt++; - for (ep = agfstout(g, np); ep; ep = agnxtout(g,ep)) { - ED_gid(ep) = ecnt++; - } + } + for (ep = agfstout(g, np); ep; ep = agnxtout(g,ep)) { + ED_gid(ep) = ecnt++; } } dtclose(map); -- 2.40.0