From: Carlos Sánchez de La Lama Date: Tue, 9 Dec 2014 12:59:24 +0000 (+0100) Subject: Fix Issue #0002504: addedge using node handles takes wrong... X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~134^2~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec20f03e116f82891bb625dbbfd73636dbe301dc;p=graphviz Fix Issue #0002504: 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);