SCM text = event_->get_property ("text");
if (ly_is_equal (text, scm_from_locale_string (" ")))
SCM text = event_->get_property ("text");
if (ly_is_equal (text, scm_from_locale_string (" ")))
+
+ Context *voice = get_voice_to_lyrics (context ());
+ if (last_text_
+ && voice
+ && to_boolean (voice->get_property ("melismaBusy"))
+ && !to_boolean (context ()->get_property ("ignoreMelismata")))
+ last_text_->set_property ("self-alignment-X",
+ get_property ("lyricMelismaAlignment"));
- if (((end_mom->main_part_ > now.main_part_) ||
- (include_grace_notes && end_mom->grace_part_ > now.grace_part_))
+ if (((end_mom->main_part_ > now.main_part_)
+ || (include_grace_notes && end_mom->grace_part_ > now.grace_part_))
- {
- bool include_grace_notes = to_boolean (get_property ("includeGraceNotes"));
- Grob *head = get_current_note_head (voice, include_grace_notes);
-
- if (head)
- {
- text_->set_parent (head, 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));
- }
- }
+ {
+ bool include_grace_notes = to_boolean (get_property ("includeGraceNotes"));
+ Grob *head = get_current_note_head (voice, include_grace_notes);
+
+ if (head)
+ {
+ text_->set_parent (head, 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));
+ }
+ }