+ if (text_)
+ {
+ Context *voice = get_voice_to_lyrics (context ());
+
+ if (voice)
+ {
+ Grob *head = get_current_note_head (voice);
+
+ if (head)
+ {
+ text_->set_parent (head, X_AXIS);
+ if (melisma_busy (voice))
+ 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_;
+ text_ = 0;
+ }
+ event_ = 0;