mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
playlist: find_prev_region_start() should return zero if no earlier region is found (used during rippling
This commit is contained in:
parent
3704b47249
commit
866ba8b174
1 changed files with 9 additions and 0 deletions
|
|
@ -2052,6 +2052,15 @@ Playlist::find_prev_region_start (timepos_t const & at)
|
|||
closest = distance;
|
||||
}
|
||||
}
|
||||
|
||||
/* XXX may be able to break out of loop here if first_sample >=
|
||||
at, since regions should be sorted by position. Check this.
|
||||
*/
|
||||
}
|
||||
|
||||
if (ret == timepos_t::max (at.time_domain())) {
|
||||
/* no earlier region found */
|
||||
ret = timepos_t (at.time_domain());
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue