X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flookup.cc;h=0050002223848461c7adfed53f0f1ac5bf07cc6a;hb=e3aa8429523e1fecaf2d4d22ac63c601093572ff;hp=fc6a2e896bca4afc494bd608076c6c05221078cc;hpb=b105fc681f3e0b373c967217eb764cd23d60b7fc;p=lilypond.git diff --git a/lily/lookup.cc b/lily/lookup.cc index fc6a2e896b..0050002223 100644 --- a/lily/lookup.cc +++ b/lily/lookup.cc @@ -256,8 +256,8 @@ Lookup::round_filled_polygon (vector const &points, /* remove consecutive duplicate points */ for (vsize i = 0; i < points.size (); i++) { - int next_i = (i + 1) % points.size (); - Real d = (points[i] - points[next_i]).length (); + int next = (i + 1) % points.size (); + Real d = (points[i] - points[next]).length (); if (d < epsilon) programming_error ("Polygon should not have duplicate points"); }