From: John Ellson Date: Tue, 9 Dec 2014 15:38:15 +0000 (-0500) Subject: apply patch from csanchezdll - addedge using node handles X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~134^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f2cdfd3127b7157065aa0e0c9e2778e55fab373;p=graphviz apply patch from csanchezdll - addedge using node handles takes wrong head --- diff --git a/tclpkg/tcldot/tcldot-graphcmd.c b/tclpkg/tcldot/tcldot-graphcmd.c index ce7b94d62..80b04bcff 100644 --- a/tclpkg/tcldot/tcldot-graphcmd.c +++ b/tclpkg/tcldot/tcldot-graphcmd.c @@ -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);