From: Emden R. Gansner Date: Fri, 30 Aug 2013 19:47:33 +0000 (-0400) Subject: Postprocessing assumes edges have Agedgeinfo_t so bind this record. X-Git-Tag: LAST_LIBGRAPH~32^2~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d29f58193c3383ee500fc839d132c15f21033601;p=graphviz Postprocessing assumes edges have Agedgeinfo_t so bind this record. --- diff --git a/lib/patchwork/patchworkinit.c b/lib/patchwork/patchworkinit.c index 7248d759a..4191c259a 100644 --- a/lib/patchwork/patchworkinit.c +++ b/lib/patchwork/patchworkinit.c @@ -116,6 +116,7 @@ static void patchwork_init_node(node_t * n) static void patchwork_init_edge(edge_t * e) { + agbindrec(e, "Agedgeinfo_t", sizeof(Agnodeinfo_t), TRUE); // edge custom data /* common_init_edge(e); */ } @@ -134,8 +135,7 @@ static void patchwork_init_node_edge(graph_t * g) ND_alg(n) = alg + i; GD_neato_nlist(g)[i++] = n; patchwork_init_node(n); - } - for (n = agfstnode(g); n; n = agnxtnode(g, n)) { + for (e = agfstout(g, n); e; e = agnxtout(g, e)) { patchwork_init_edge(e); }