mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 07:05:43 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue