From c85bdd46312cd6dcb850d7ade76772f9f1ae5558 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 11 Nov 2011 15:56:31 +0000 Subject: [PATCH] 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 --- libs/ardour/region.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }