]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #1581: Only NoteEvents can cause a tie. Ignore all other events that create note...
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 10 Jul 2011 19:41:55 +0000 (21:41 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 12 Jul 2011 17:40:28 +0000 (19:40 +0200)
input/regression/tie-pitched-trill.ly [new file with mode: 0644]
lily/tie-engraver.cc

diff --git a/input/regression/tie-pitched-trill.ly b/input/regression/tie-pitched-trill.ly
new file mode 100644 (file)
index 0000000..79c1df8
--- /dev/null
@@ -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
+}
index d7fb39db74649414ea38c6e6fa0970e534a180df..edaba06c7c0720e1dcc35321acf9010cee298226 100644 (file)
@@ -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");