]> granicus.if.org Git - graphviz/commitdiff
Edges attached to a cluster were not getting assigned an index number. untagged-c6ce5b1f17878d776124
authorEmden Gansner <emdenrg@google.com>
Fri, 12 Aug 2016 21:18:29 +0000 (17:18 -0400)
committerEmden Gansner <emdenrg@google.com>
Fri, 12 Aug 2016 21:18:29 +0000 (17:18 -0400)
plugin/core/gvrender_core_json.c

index 3c7682579326d5b3ca1a8b86ab3f0d1347e82984..b886ac77f6340a5951b448cc8f820174dd7f98d5 100644 (file)
@@ -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);