]> granicus.if.org Git - graphviz/commitdiff
Fix Issue #0002504: <graph> addedge <tail> <head> using node handles takes wrong...
authorCarlos Sánchez de La Lama <csanchezdll@gmail.com>
Tue, 9 Dec 2014 12:59:24 +0000 (13:59 +0100)
committerCarlos Sánchez de La Lama <csanchezdll@gmail.com>
Tue, 9 Dec 2014 12:59:24 +0000 (13:59 +0100)
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);