]> granicus.if.org Git - graphviz/commitdiff
Fix bug in nameOf for edges
authorerg <devnull@localhost>
Wed, 17 Feb 2010 22:13:59 +0000 (22:13 +0000)
committererg <devnull@localhost>
Wed, 17 Feb 2010 22:13:59 +0000 (22:13 +0000)
lib/gvpr/compile.c

index cabc0b73a598fa195df2b43ce1bee3064989b5e3..ba85a12505d6798b1cb7303046a6cfd7792c3544 100644 (file)
@@ -100,7 +100,7 @@ static char *nameOf(Expr_t * ex, Agobj_t * obj, Sfio_t* tmps)
        break;
     default:                   /* edge */
        e = (Agedge_t *) obj;
-       key = agnameof(AGMKOUT(obj));
+       key = agnameof(AGMKOUT(e));
        sfputr(tmps, agnameof(AGTAIL(e)), -1);
        if (agisdirected(agraphof(e)))
            sfputr(tmps, "->", -1);