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:
Carl Hetherington 2012-01-29 21:27:51 +00:00
parent dba601eeab
commit b468a7b5b3

View File

@ -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;