From: Joe Neeman Date: Tue, 20 Apr 2010 22:25:08 +0000 (-0700) Subject: Fix 974 and 1025. X-Git-Tag: release/2.13.19-1~2^2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3aadd90d55f7c838071411ca839307e4500e6ad6;p=lilypond.git 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. --- 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); }