]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/break-align-engraver.cc
MusicXML: Improvements / Fixes for articulations
[lilypond.git] / lily / break-align-engraver.cc
index dcce285bdfa0492fe61b2081c9c26d0b0fe8000f..b3e74500d0c5ae102d14457ff3259c6a5335841c 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1999--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 #include "engraver.hh"
 #include "protected-scm.hh"
@@ -79,6 +79,8 @@ Break_align_engraver::acknowledge_break_aligned (Grob_info inf)
 
          Translator_group *tg = origin->implementation ();
          Engraver *random_source = dynamic_cast<Engraver *> (unsmob_translator (scm_car (tg->get_simple_trans_list ())));
+         if (!random_source)
+           random_source = this;
 
          /*
            Make left edge appear to come from same context as clef/bar-line etc.