X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flyric-engraver.cc;h=afcfdf90153be10d9ab954ca2263c1306320115e;hb=f4abbfff5f0d985a457e15586dbcc3ae473b0dee;hp=6dce40a464ba7b385f0149dd254debd7de9b6ecd;hpb=058370efc7e9710f149d0f444328bb1fcd7bdec1;p=lilypond.git diff --git a/lily/lyric-engraver.cc b/lily/lyric-engraver.cc index 6dce40a464..afcfdf9015 100644 --- a/lily/lyric-engraver.cc +++ b/lily/lyric-engraver.cc @@ -95,7 +95,7 @@ get_voice_to_lyrics (Context *lyrics) bool searchForVoice = to_boolean (lyrics->get_property ("searchForVoice")); SCM avc = lyrics->get_property ("associatedVoiceContext"); - if (Context *c = unsmob_context (avc)) + if (Context *c = Context::unsmob (avc)) return c; SCM voice_name = lyrics->get_property ("associatedVoice"); @@ -141,8 +141,8 @@ get_current_note_head (Context *voice, bool include_grace_notes) for (SCM s = voice->get_property ("busyGrobs"); scm_is_pair (s); s = scm_cdr (s)) { - Grob *g = unsmob_grob (scm_cdar (s));; - Moment *end_mom = unsmob_moment (scm_caar (s)); + Grob *g = Grob::unsmob (scm_cdar (s));; + Moment *end_mom = Moment::unsmob (scm_caar (s)); if (!end_mom || !g) { programming_error ("busyGrobs invalid"); @@ -175,18 +175,12 @@ Lyric_engraver::stop_translation_timestep () if (head) { - text_->set_parent (head, X_AXIS); + text_->set_parent (head->get_parent(X_AXIS), X_AXIS); if (melisma_busy (voice) && !to_boolean (get_property ("ignoreMelismata"))) text_->set_property ("self-alignment-X", get_property ("lyricMelismaAlignment")); } - else - { - text_->warning (_ ("Lyric syllable does not have note." - " Use \\lyricsto or associatedVoice.")); - text_->set_property ("X-offset", scm_from_int (0)); - } } last_text_ = text_;