From: Emden Gansner Date: Fri, 12 Aug 2016 21:18:29 +0000 (-0400) Subject: Edges attached to a cluster were not getting assigned an index number. X-Git-Tag: untagged-c6ce5b1f17878d776124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39180176da657656abc7f7f90adf894b85aeabee;p=graphviz Edges attached to a cluster were not getting assigned an index number. --- 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);