From 2d5a3013e0ec74bc7d69a403d15b3357db30d2ae Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 14 Jan 2020 14:34:57 -0700 Subject: [PATCH] fix 03c4335c1e20311 to use the correct test for zero length That commit used the dangerous Beats::operator== (int) comparison, which only campares the beat portion --- gtk2_ardour/midi_region_view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 3db3be3fdf..a9a3f98688 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -1759,7 +1759,7 @@ MidiRegionView::update_sustained (Note* ev, bool update_ghost_regions) const double y0 = 1 + floor(note_to_y(note->note())); double y1; - if (note->length() == 0) { + if (note->length() == Temporal::Beats()) { /* special case actual zero-length notes */