X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmelody-spanner.cc;h=4d1cc67ae9a4368d12277867ae96dc3d41919384;hb=e34621159931fdbc7dff10973c2bc9ca38ab024c;hp=103a5c642744658ee6ad84d114605ebafc1ab69b;hpb=711cf44d0ab28f3159230c84d63c0b19199408b0;p=lilypond.git diff --git a/lily/melody-spanner.cc b/lily/melody-spanner.cc index 103a5c6427..4d1cc67ae9 100644 --- a/lily/melody-spanner.cc +++ b/lily/melody-spanner.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2005--2006 Han-Wen Nienhuys + (c) 2005--2007 Han-Wen Nienhuys */ @@ -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 " + );