]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix 974 and 1025.
authorJoe Neeman <joeneeman@gmail.com>
Tue, 20 Apr 2010 22:25:08 +0000 (15:25 -0700)
committerJoe Neeman <joeneeman@gmail.com>
Tue, 20 Apr 2010 23:14:06 +0000 (16:14 -0700)
Tweak Slur::pure_height to account for the fact that slurs
don't start exactly on top of a note-head.

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);
 }