From: Reinhold Kainhofer Date: Sun, 10 Jul 2011 19:41:55 +0000 (+0200) Subject: Fix #1581: Only NoteEvents can cause a tie. Ignore all other events that create note... X-Git-Tag: release/2.15.5-1~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c3bbf906e97f986dda90e78cebf90a48446cef9d;p=lilypond.git Fix #1581: Only NoteEvents can cause a tie. Ignore all other events that create note heads --- diff --git a/input/regression/tie-pitched-trill.ly b/input/regression/tie-pitched-trill.ly new file mode 100644 index 0000000000..79c1df86bd --- /dev/null +++ b/input/regression/tie-pitched-trill.ly @@ -0,0 +1,12 @@ +\version "2.15.5" + +\header { + texidoc = "The pitch of a pitched trill should not trigger a warning for + unterminated ties." +} + +\relative c' { + \pitchedTrill + c1~\startTrillSpan d + c1\stopTrillSpan +} diff --git a/lily/tie-engraver.cc b/lily/tie-engraver.cc index d7fb39db74..edaba06c7c 100644 --- a/lily/tie-engraver.cc +++ b/lily/tie-engraver.cc @@ -270,6 +270,9 @@ Tie_engraver::stop_translation_timestep () continue; } + // We only want real notes to cause ties, not e.g. pitched trills + if (!left_ev->in_event_class ("note-event")) + continue; SCM left_articulations = left_ev->get_property ("articulations");