]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/melody-spanner.cc
Merge branch 'master' of git://git.sv.gnu.org/lilypond
[lilypond.git] / lily / melody-spanner.cc
index efec74286012ac0311ba89406584a90cff582872..4d1cc67ae9a4368d12277867ae96dc3d41919384 100644 (file)
@@ -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 "
+              );