mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
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:
parent
f771679ade
commit
2d5a3013e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue