when build the region boundary cache, use the "end" of a region, not its "last sample"

It makes no sense to every align a region start/sync point during a drag or alignment operation
with the last sample of another region. It only makes sense to align with the position immediately
after the last sample of the other region (e.g. directly sequencing regions).
This commit is contained in:
Paul Davis 2020-03-30 17:20:09 -06:00
parent 83cd796a47
commit ff08fbb969

View File

@ -794,10 +794,11 @@ Editor::build_region_boundary_cache ()
switch (*p) {
case Start:
rpos = r->first_sample();
cerr << "use start of " << r->name() << endl;
break;
case End:
rpos = r->last_sample();
rpos = r->last_sample() + 1;
break;
case SyncPoint: