]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #58.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 1 Jan 2007 17:00:10 +0000 (18:00 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 1 Jan 2007 17:00:10 +0000 (18:00 +0100)
Don't ignore beamed rests when doing note/rest collisions.

input/regression/rest-collision-beam-note.ly [new file with mode: 0644]
lily/rest-collision.cc

diff --git a/input/regression/rest-collision-beam-note.ly b/input/regression/rest-collision-beam-note.ly
new file mode 100644 (file)
index 0000000..d8bdcb1
--- /dev/null
@@ -0,0 +1,17 @@
+
+\header {
+
+  texidoc = "Beam/rest collision resolution and normal rest/note
+collisions can be combined."
+
+}
+
+\version "2.10.7"
+
+\layout { ragged-right=##t }
+
+\new Staff \relative
+<<
+  {  s8 f4 } \\
+  {  <f, a>8[ r <a d>] }
+>>
index f748b56a829641e5ecdece06bd80288648640868..5825671a17c69eeb84c28020c2c435820b232bb8 100644 (file)
@@ -101,16 +101,7 @@ Rest_collision::calc_positioning_done (SCM smob)
     {
       Grob *e = elts[i];
       if (unsmob_grob (e->get_object ("rest")))
-       {
-         /*
-           Ignore rests under beam.
-         */
-         Grob *st = unsmob_grob (e->get_object ("stem"));
-         if (st && unsmob_grob (st->get_object ("beam")))
-           continue;
-
-         rests.push_back (e);
-       }
+       rests.push_back (e);
       else
        notes.push_back (e);
     }