From: Han-Wen Nienhuys Date: Tue, 18 May 2004 22:31:22 +0000 (+0000) Subject: (do_shift): handle (0-down, 2-up) case X-Git-Tag: release/2.2.2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4fe7cce56c11023b2a45166a3a0befcdb75eb729;p=lilypond.git (do_shift): handle (0-down, 2-up) case too. --- diff --git a/ChangeLog b/ChangeLog index da56d0fe14..91680825d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,16 @@ +2004-05-19 Han-Wen Nienhuys + + * lily/rest-collision.cc (do_shift): handle (0-down, 2-up) case + too. + 2004-05-04 Han-Wen Nienhuys * lily/ottava-bracket.cc (print): fix ottava on rests. 2004-05-03 Han-Wen Nienhuys + * VERSION: release 2.2.1 + * scm/music-functions.scm (set-accidental-style): use GrandStaff iso. PianoStaff. diff --git a/lily/identifier-smob.cc b/lily/identifier-smob.cc index 678cc4a8d0..49a3302400 100644 --- a/lily/identifier-smob.cc +++ b/lily/identifier-smob.cc @@ -31,7 +31,7 @@ print_box (SCM b, SCM port, scm_print_state *) /* This defines the primitve `make-box', which returns a new smob of type `box', initialized to `#f'. */ -LY_DEFINE (package_identifier, "ly:export", 1,0,0, (SCM arg), +LY_DEFINE (package_identifier, "ly:export", 1, 0, 0, (SCM arg), "Export a Scheme object to the parser, so it is treated as an identifier.") { /* This macro creates the new objects, stores the value `#f' into it diff --git a/lily/rest-collision.cc b/lily/rest-collision.cc index c815db634e..f97150bcc0 100644 --- a/lily/rest-collision.cc +++ b/lily/rest-collision.cc @@ -150,7 +150,8 @@ Rest_collision::do_shift (Grob *me) ordered_rests[d].sort (Note_column::shift_compare); } while (flip (&d) != LEFT); - if (ordered_rests[UP].size () + ordered_rests[DOWN].size () < 2) + if (ordered_rests[UP].size () < 1 + || ordered_rests[DOWN].size () < 1) return SCM_UNSPECIFIED; Grob *common = common_refpoint_of_array (ordered_rests[DOWN], me, Y_AXIS);