]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lookup.cc
(replace_whitespace): UTF-8 characters are up to 4 bytes long.
[lilypond.git] / lily / lookup.cc
index c92ca3bd211a99c79c4d11e91b2a631a5a476f20..fc6a2e896bca4afc494bd608076c6c05221078cc 100644 (file)
@@ -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);
 }
 
@@ -731,7 +731,7 @@ Lookup::points_to_line_stencil (Real thick, vector<Offset> const &points)
   Stencil ret;
   for (vsize i = 1; i < points.size (); i++)
     {
-      if (points[i-1].is_sane ()  && points[i].is_sane ())
+      if (points[i-1].is_sane () && points[i].is_sane ())
        {
          Stencil line
            = Line_interface::make_line (thick, points[i-1], points[i]);