]> granicus.if.org Git - graphviz/commitdiff
tclpkg remove_poly: remove shadowing of 'polyid'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Jan 2023 04:40:49 +0000 (20:40 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 15 Jan 2023 16:59:31 +0000 (08:59 -0800)
tclpkg/tclpathplan/tclpathplan.c

index 448a4eec72666c0b834d33880ebbe12917e6bed3..946f4c5c77d957560979a5000e09881c9814aec3 100644 (file)
@@ -307,12 +307,12 @@ static point scale(point c, point p, double gain)
     return q;
 }
 
-static int remove_poly(vgpane_t * vgp, int polyid)
+static int remove_poly(vgpane_t * vgp, int id)
 {
     int i, j;
 
     for (i = 0; i < vgp->Npoly; i++) {
-       if (vgp->poly[i].id == polyid) {
+       if (vgp->poly[i].id == id) {
            free(vgp->poly[i].boundary.ps);
            for (j = i++; i < vgp->Npoly; i++, j++) {
                vgp->poly[j] = vgp->poly[i];