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
This commit is contained in:
parent
0cff0eee9f
commit
c85bdd4631
@ -842,7 +842,7 @@ Region::modify_end (framepos_t new_endpoint, bool reset_fade)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (new_endpoint > _position) {
|
if (new_endpoint > _position) {
|
||||||
trim_to_internal (_position, new_endpoint - _position +1);
|
trim_to_internal (_position, new_endpoint - _position);
|
||||||
if (reset_fade) {
|
if (reset_fade) {
|
||||||
_left_of_split = true;
|
_left_of_split = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user