diff options
author | Jean-Charles Malahieude <lilyfan@orange.fr> | 2016-09-17 16:05:08 +0200 |
---|---|---|
committer | Jean-Charles Malahieude <lilyfan@orange.fr> | 2016-09-17 16:05:08 +0200 |
commit | 7738c6fa2759373c05e34b003a7ed521e9382f37 (patch) | |
tree | 98cdc4f57245b8ebccc10891717b71a9a5e5fbb1 /lily/lookup.cc | |
parent | 50ee6ceadc8e270a5cdf43279097ce3f3f56914f (diff) | |
parent | 39912f861693f1c24b8833e6e9e6ba82eb3e6746 (diff) |
Merge branch 'master' into translation
Diffstat (limited to 'lily/lookup.cc')
-rw-r--r-- | lily/lookup.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lily/lookup.cc b/lily/lookup.cc index 3e592516c5..d7b6b8d26e 100644 --- a/lily/lookup.cc +++ b/lily/lookup.cc @@ -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; |