From c3bbf906e97f986dda90e78cebf90a48446cef9d Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Sun, 10 Jul 2011 21:41:55 +0200 Subject: [PATCH] Fix #1581: Only NoteEvents can cause a tie. Ignore all other events that create note heads --- input/regression/tie-pitched-trill.ly | 12 ++++++++++++ lily/tie-engraver.cc | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 input/regression/tie-pitched-trill.ly 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"); -- 2.39.5