mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
fix for short notes being displayed as infinitely long.
This commit is contained in:
parent
b2aaffadc5
commit
f989ed5b7f
1 changed files with 1 additions and 1 deletions
|
|
@ -1704,7 +1704,7 @@ MidiRegionView::update_sustained (Note* ev, bool update_ghost_regions)
|
|||
double y1;
|
||||
|
||||
/* trim note display to not overlap the end of its region */
|
||||
if (note->length() > 0) {
|
||||
if (note->length().to_double() > 0.0) {
|
||||
double note_end_time = note->end_time().to_double();
|
||||
|
||||
if (note_end_time > mr->start_beats() + mr->length_beats()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue