]> granicus.if.org Git - graphviz/commitdiff
apply patch from csanchezdll - <graph> addedge <tail> <head> using node handles
authorJohn Ellson <ellson@research.att.com>
Tue, 9 Dec 2014 15:38:15 +0000 (10:38 -0500)
committerJohn Ellson <ellson@research.att.com>
Tue, 9 Dec 2014 15:38:15 +0000 (10:38 -0500)
takes wrong head

tclpkg/tcldot/tcldot-graphcmd.c

index ce7b94d626da557703d3fb1b4fbe196029fdbe8d..80b04bcffdb235e792a7129be017b97c258c9c24 100644 (file)
@@ -64,7 +64,7 @@ int graphcmd(ClientData clientData, Tcl_Interp * interp,
            Tcl_AppendResult(interp, "Tail node ", argv[2], " is not in the graph.", NULL);
            return TCL_ERROR;
        }
-        head = cmd2n(argv[2]);
+        head = cmd2n(argv[3]);
         if (!head) {
            if (!(head = agfindnode(g, argv[3]))) {
                Tcl_AppendResult(interp, "Head node \"", argv[3], "\" not found.", NULL);