13
0

Make RegionView less aggressive about trimming the front of a region.

This commit is contained in:
nick_m 2016-06-11 05:43:35 +10:00
parent f3b4644969
commit 34500f7416

View File

@ -830,7 +830,13 @@ RegionView::trim_front (framepos_t new_bound, bool no_overlap)
framepos_t const pre_trim_first_frame = _region->first_frame(); framepos_t const pre_trim_first_frame = _region->first_frame();
_region->trim_front ((framepos_t) (new_bound * speed)); const framepos_t speed_bound = (framepos_t) (new_bound * speed);
if (_region->position() == speed_bound) {
return false;
}
_region->trim_front (speed_bound);
if (no_overlap) { if (no_overlap) {
// Get the next region on the left of this region and shrink/expand it. // Get the next region on the left of this region and shrink/expand it.