diff options
author | nick_m <mainsbridge@gmail.com> | 2016-06-11 05:43:35 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-06-11 05:43:35 +1000 |
commit | 34500f74164c6a95a794d408b2b7e52957048c1b (patch) | |
tree | 5889e2674d663a85f3cdd7e9dc5a17fba67d07ea /gtk2_ardour/region_view.cc | |
parent | f3b4644969c4a40c1afdd4aa2e77ce8b8b25a3f9 (diff) |
Make RegionView less aggressive about trimming the front of a region.
Diffstat (limited to 'gtk2_ardour/region_view.cc')
-rw-r--r-- | gtk2_ardour/region_view.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/region_view.cc b/gtk2_ardour/region_view.cc index a2a4712b46..a62d000abc 100644 --- a/gtk2_ardour/region_view.cc +++ b/gtk2_ardour/region_view.cc @@ -830,7 +830,13 @@ RegionView::trim_front (framepos_t new_bound, bool no_overlap) 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) { // Get the next region on the left of this region and shrink/expand it. |