fix 03c4335c1e to use the correct test for zero length

That commit used the dangerous Beats::operator== (int) comparison, which only campares the beat portion
This commit is contained in:
Paul Davis 2020-01-14 14:34:57 -07:00
parent f771679ade
commit 2d5a3013e0

View file

@ -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 */