]> granicus.if.org Git - graphviz/commitdiff
Fix bug 743
authorerg <devnull@localhost>
Fri, 15 Jul 2005 17:01:17 +0000 (17:01 +0000)
committererg <devnull@localhost>
Fri, 15 Jul 2005 17:01:17 +0000 (17:01 +0000)
lib/dotgen/dotsplines.c

index 74de052625625e423079817adf63edb642435d56..f57fe06aca86509ff7aeffa1538bc41c771a34db 100644 (file)
@@ -337,7 +337,7 @@ void dot_splines(graph_t * g)
                break;
        }
        if (e0->tail == e0->head) {
-           int sizey, r;
+           int b, sizey, r;
            n = e0->tail;
            r = ND_rank(n);
            if (r == GD_maxrank(g)) {
@@ -355,8 +355,8 @@ void dot_splines(graph_t * g)
                sizey = MIN(upy, dwny);
            }
            makeSelfEdge(P, edges, ind, cnt, sd.Multisep, sizey, &sinfo);
-           for (i = 0; i < cnt; i++) {
-               e = edges[ind+i];
+           for (b = 0; b < cnt; b++) {
+               e = edges[ind+b];
                if (ED_label(e))
                    updateBB(g, ED_label(e));
            }