temporal: during cut(), break out of loop once we pass the end time

This commit is contained in:
Paul Davis 2023-08-25 17:36:42 -06:00
parent 848f74d803
commit 4d8ba938f1

View File

@ -888,7 +888,11 @@ TempoMap::cut_copy (timepos_t const & start, timepos_t const & end, bool copy, b
* time here.
*/
if (p->sclock() < start_sclock || p->sclock() >= end_sclock) {
if (p->sclock() >= end_sclock) {
break;
}
if (p->sclock() < start_sclock) {
++p;
continue;
}