Use Region::last_frame() rather than position + length in RegionSelection::end_frame; fixes #4671.
git-svn-id: svn://localhost/ardour2/branches/3.0@11384 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
dba601eeab
commit
b468a7b5b3
@ -269,7 +269,7 @@ RegionSelection::end_frame () const
|
||||
{
|
||||
framepos_t e = 0;
|
||||
for (RegionSelection::const_iterator i = begin(); i != end(); ++i) {
|
||||
e = max (e, (*i)->region()->position () + (*i)->region()->length ());
|
||||
e = max (e, (*i)->region()->last_frame ());
|
||||
}
|
||||
|
||||
return e;
|
||||
|
Loading…
Reference in New Issue
Block a user