X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flookup.cc;h=0050002223848461c7adfed53f0f1ac5bf07cc6a;hb=a8f3bf6456d8d8abf5998216c528e873db1064b3;hp=61d66186595ffb69786be06672e014117fcf0dbc;hpb=a0df7dcd3b849dd7284f9325704584d916b8f485;p=lilypond.git diff --git a/lily/lookup.cc b/lily/lookup.cc index 61d6618659..0050002223 100644 --- a/lily/lookup.cc +++ b/lily/lookup.cc @@ -106,7 +106,7 @@ Lookup::dashed_slur (Bezier b, Real thick, Real dash_period, Real dash_fraction) ly_quote_scm (l), SCM_UNDEFINED)); - Box box (Interval (0, 0), Interval (0, 0)); + Box box (b.extent (X_AXIS), b.extent (Y_AXIS)); return Stencil (box, at); } @@ -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"); }