From 3aadd90d55f7c838071411ca839307e4500e6ad6 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Tue, 20 Apr 2010 15:25:08 -0700 Subject: [PATCH] Fix 974 and 1025. Tweak Slur::pure_height to account for the fact that slurs don't start exactly on top of a note-head. --- lily/slur.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lily/slur.cc b/lily/slur.cc index 61aaba38e3..1b5b05ef3a 100644 --- a/lily/slur.cc +++ b/lily/slur.cc @@ -93,7 +93,10 @@ Slur::pure_height (SCM smob, SCM start_scm, SCM end_scm) ret.unite (d); } - ret.widen (height * 0.5); + // The +0.5 comes from the fact that we try to place a slur + // 0.5 staff spaces from the note-head. + // (see Slur_score_state.get_base_attachments ()) + ret.widen (height * 0.5 + 0.5); return ly_interval2scm (ret); } -- 2.39.2