Fix stacked region view
Previously this looped endlessly in RegionView::update_coverage_frame() if the return value was undefined (or wrong time-domain) and smaller than pos.
This commit is contained in:
parent
eb0b3f253a
commit
d29d40c1ec
@ -2063,7 +2063,7 @@ Playlist::find_next_region_boundary (timepos_t const & pos, int dir)
|
||||
RegionReadLock rlock (this);
|
||||
|
||||
timecnt_t closest = std::numeric_limits<timecnt_t>::max();
|
||||
timepos_t ret;
|
||||
timepos_t ret = Temporal::timepos_t::max (pos.time_domain ());
|
||||
|
||||
if (dir > 0) {
|
||||
for (RegionList::iterator i = regions.begin (); i != regions.end (); ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user