fix 03c4335c1e20311 to use the correct test for zero length
[ardour.git] / gtk2_ardour / midi_region_view.cc
index 3db3be3fdfec3e401b9fa95c3a6e1f049d11453b..a9a3f9868850aed6dae65fba1c7379c88b48002c 100644 (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 */