From: Emden R. Gansner Date: Fri, 25 Jul 2014 20:27:17 +0000 (-0400) Subject: Fix bug in nexthead and nexttail functions X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51722b911b05f7735f98920fbc233b1a061dd4ee;p=graphviz Fix bug in nexthead and nexttail functions --- diff --git a/tclpkg/gv/gv.cpp b/tclpkg/gv/gv.cpp index f2d9669b9..8612885e3 100644 --- a/tclpkg/gv/gv.cpp +++ b/tclpkg/gv/gv.cpp @@ -584,7 +584,7 @@ Agnode_t *nexthead(Agnode_t *n, Agnode_t *h) if (!e) return NULL; do { - e = agnxtout(g, e); + e = agnxtout(g, AGMKOUT(e)); if (!e) return NULL; } while (aghead(e) == h); @@ -671,7 +671,7 @@ Agnode_t *nexttail(Agnode_t *n, Agnode_t *t) if (!e) return NULL; do { - e = agnxtin(g, e); + e = agnxtin(g, AGMKIN(e)); if (!e) return NULL; } while (agtail(e) == t);