mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
fix dangling and incorrect use of numeric_limits<double> as a control event position
This commit is contained in:
parent
8a47dc39f1
commit
5f67bbe5e4
1 changed files with 1 additions and 1 deletions
|
|
@ -667,7 +667,7 @@ Automatable::find_next_event (timepos_t const & start, timepos_t const & end, Ev
|
|||
}
|
||||
}
|
||||
}
|
||||
return next_event.when != (start <= end ? std::numeric_limits<double>::max() : 0);
|
||||
return next_event.when != (start <= end ? timepos_t::max (start.time_domain()) : timepos_t (start.time_domain()));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue