]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lookup.cc
Release: bump Welcome versions.
[lilypond.git] / lily / lookup.cc
index 3e592516c588bc765cdfe451931bd56da2122e8b..d7b6b8d26e9bc81c5eada2ab7911128c1de26a2d 100644 (file)
@@ -417,9 +417,9 @@ Lookup::slur (Bezier curve, Real curvethick, Real linethick,
       calculate the offset for the two beziers that make the sandwich
       for the slur
   */
-  Real alpha = (curve.control_[3] - curve.control_[0]).arg ();
+  Offset dir = (curve.control_[3] - curve.control_[0]).direction ();
   Bezier back = curve;
-  Offset perp = curvethick * complex_exp (Offset (0, alpha + M_PI / 2)) * 0.5;
+  Offset perp = 0.5 * curvethick * Offset (-dir[Y_AXIS], dir[X_AXIS]);
   back.control_[1] += perp;
   back.control_[2] += perp;