summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-11 15:56:31 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-11 15:56:31 +0000
commitc85bdd46312cd6dcb850d7ade76772f9f1ae5558 (patch)
treeb608071145be7f9e074ed2d6f6690ba4d60d255f /libs/ardour/region.cc
parent0cff0eee9f10f97a7b336822311377d7f68c6852 (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.cc2
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;
}