]> granicus.if.org Git - graphviz/commitdiff
Fix bug when generating polylines for simple multiedges
authorerg <devnull@localhost>
Sat, 5 Dec 2009 23:20:13 +0000 (23:20 +0000)
committererg <devnull@localhost>
Sat, 5 Dec 2009 23:20:13 +0000 (23:20 +0000)
lib/neatogen/neatosplines.c

index 294c0c128e5bf0e9ebe9543ab59d0f2ed6836a5f..178d7bcabd430c4fc07b15a986f6ffe851f8675a 100644 (file)
@@ -476,8 +476,8 @@ makeStraightEdge(graph_t * g, edge_t * e, int doPolyline)
 
            line.pn = 4;
            line.ps = pts;
-           for (i=0; i < 4; i++) {
-               pts[i] = dumber[i];
+           for (j=0; j < 4; j++) {
+               pts[j] = dumber[j];
            }
            make_polyline (line, &spl);
            clip_and_install(e0, aghead(e0), spl.ps, spl.pn, &sinfo);