]> git.donarmstrong.com Git - lilypond.git/commitdiff
fix #269
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 3 Feb 2007 00:14:03 +0000 (01:14 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 3 Feb 2007 00:14:03 +0000 (01:14 +0100)
Only respond to new_context if we still have lyrics.

lily/lyric-combine-music-iterator.cc

index 7639e03a8f35dcbbfee034d3dae77f81ae08d768..bf5d02d8b2876a2b1d154c2064cbab0f9d17bff9 100644 (file)
@@ -209,6 +209,9 @@ IMPLEMENT_LISTENER (Lyric_combine_music_iterator, check_new_context)
 void
 Lyric_combine_music_iterator::check_new_context (SCM sev)
 {
+  if (!ok ())
+    return ;
+  
   // TODO: Check first if type=Voice and if id matches
   Stream_event * ev = unsmob_stream_event (sev);
   if (ev->get_property ("type") != ly_symbol2scm ("Voice"))