]> git.donarmstrong.com Git - lilypond.git/commitdiff
don't set callback if staff-position set. Fixes #126.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 28 Oct 2006 16:52:30 +0000 (18:52 +0200)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 28 Oct 2006 16:52:30 +0000 (18:52 +0200)
input/regression/rest-pitched-beam.ly [new file with mode: 0644]
lily/beam-engraver.cc

diff --git a/input/regression/rest-pitched-beam.ly b/input/regression/rest-pitched-beam.ly
new file mode 100644 (file)
index 0000000..6532b88
--- /dev/null
@@ -0,0 +1,11 @@
+\header {
+
+  texidoc = "Pitched rests under beams."
+
+}
+
+\version "2.9.26"
+
+\relative c'{
+  a\rest a8[ a\rest b] |
+}
index 45015191366ae7df50084c0901d64b58f39cd8c1..cad443299c789b79f8402e937238e6a28d80c20c 100644 (file)
@@ -206,7 +206,8 @@ Beam_engraver::finalize ()
 void
 Beam_engraver::acknowledge_rest (Grob_info info)
 {
-  if (beam_)
+  if (beam_
+      && !scm_is_number (info.grob ()->get_property_data ("staff-position")))
     {
       chain_offset_callback (info.grob(),
                             Beam::rest_collision_callback_proc, Y_AXIS);