]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 2946: let Lyric_combine_music_iterator only listen to rhythmic events
authorDavid Kastrup <dak@gnu.org>
Wed, 7 Nov 2012 10:15:33 +0000 (11:15 +0100)
committerDavid Kastrup <dak@gnu.org>
Mon, 12 Nov 2012 09:02:15 +0000 (10:02 +0100)
Listening to articulations makes the rhythmic_music_iterator assume it
can just broadcast things like string numbers and right fingerings and
somebody will pick them up and deal with them which is, unfortunately,
not the case.

Listening only to rhythmic events should cure that problem.

lily/lyric-combine-music-iterator.cc

index 48c8af205e1a16741b44405850279773869fd07e..3c47335b3572f8deebbcae629d13b6a6cbcf43b2 100644 (file)
@@ -110,14 +110,14 @@ Lyric_combine_music_iterator::set_music_context (Context *to)
   if (music_context_)
     {
       music_context_->event_source ()->
-      remove_listener (GET_LISTENER (set_busy), ly_symbol2scm ("music-event"));
+      remove_listener (GET_LISTENER (set_busy), ly_symbol2scm ("rhythmic-event"));
     }
 
   music_context_ = to;
   if (to)
     {
       to->event_source ()->add_listener (GET_LISTENER (set_busy),
-                                         ly_symbol2scm ("music-event"));
+                                         ly_symbol2scm ("rhythmic-event"));
     }
 }