]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/melody-spanner.cc
Run `make grand-replace'.
[lilypond.git] / lily / melody-spanner.cc
index efec74286012ac0311ba89406584a90cff582872..826364bb7e79c9f7d2c89cf07bc03893af2aac82 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2005--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2005--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
 */
 
@@ -20,7 +20,7 @@
 /*
   Interpolate stem directions for neutral stems.
  */
-MAKE_SCHEME_CALLBACK(Melody_spanner,calc_neutral_stem_direction, 1);
+MAKE_SCHEME_CALLBACK (Melody_spanner, calc_neutral_stem_direction, 1);
 SCM
 Melody_spanner::calc_neutral_stem_direction (SCM smob)
 {
@@ -42,7 +42,7 @@ Melody_spanner::calc_neutral_stem_direction (SCM smob)
     next_nonneutral++;
 
   SCM retval = SCM_EOL;
-  while (last_nonneutral == VPOS || last_nonneutral < dirs.size () - 1
+  while (last_nonneutral == VPOS || last_nonneutral + 1 < dirs.size ()
     {
       Direction d1 = CENTER;
       Direction d2 = CENTER;
@@ -95,7 +95,9 @@ Melody_spanner::add_stem (Grob *me, Grob *stem)
 ADD_INTERFACE (Melody_spanner,
               "Context dependent typesetting decisions.",
 
+              /* properties */
               "stems "
-              "neutral-direction ");
+              "neutral-direction "
+              );