diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-30 17:20:09 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-30 17:25:07 -0600 |
commit | ff08fbb969c75adabb1bf59b402d0a76c59fa42b (patch) | |
tree | ebd6cc4a003ec344f39d2de75bde0a5762fd754c /gtk2_ardour/editor_ops.cc | |
parent | 83cd796a474f746534968caff36ea0893d6a5464 (diff) |
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).
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index fe4b45da4e..c62cb70153 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -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: |