diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-11 15:56:31 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-11 15:56:31 +0000 |
commit | c85bdd46312cd6dcb850d7ade76772f9f1ae5558 (patch) | |
tree | b608071145be7f9e074ed2d6f6690ba4d60d255f /libs/ardour/region.cc | |
parent | 0cff0eee9f10f97a7b336822311377d7f68c6852 (diff) |
fix nasty off by one error that put the end of an end-trimmed region one sample beyond where it should be. this would lead to the creation of 1 sample xfades where there should be none, if another region was aligned to the same point that the region had been nomimally trimmed to
git-svn-id: svn://localhost/ardour2/branches/3.0@10541 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index dc3f39daee..5f5988a8bb 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -842,7 +842,7 @@ Region::modify_end (framepos_t new_endpoint, bool reset_fade) } if (new_endpoint > _position) { - trim_to_internal (_position, new_endpoint - _position +1); + trim_to_internal (_position, new_endpoint - _position); if (reset_fade) { _left_of_split = true; } |