diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-14 14:34:57 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-14 14:35:08 -0700 |
commit | 2d5a3013e0ec74bc7d69a403d15b3357db30d2ae (patch) | |
tree | fdc9fe4a73085c227ea5038bdd3b01511503201d | |
parent | f771679ade180a79b56629654cca166af99192d9 (diff) |
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
-rw-r--r-- | gtk2_ardour/midi_region_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |