]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/slur.cc
Fix 974 and 1025.
[lilypond.git] / lily / slur.cc
index 61aaba38e3756aadcbcfcf1c0cc599b0959c64d9..1b5b05ef3ac3e02ebff303cde6b90692ad462a98 100644 (file)
@@ -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);
 }