summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_selection.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-01-29 21:27:51 +0000
committerCarl Hetherington <carl@carlh.net>2012-01-29 21:27:51 +0000
commitb468a7b5b3cee8f9af8716a77ffa313f5f2e7f5a (patch)
tree5c980b1672cd08301c06122ee83a41948fa144d3 /gtk2_ardour/region_selection.cc
parentdba601eeab9054ca4fac811c6c5e414d59fdc460 (diff)
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
Diffstat (limited to 'gtk2_ardour/region_selection.cc')
-rw-r--r--gtk2_ardour/region_selection.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/region_selection.cc b/gtk2_ardour/region_selection.cc
index 8c3a641941..127a0ffe8e 100644
--- a/gtk2_ardour/region_selection.cc
+++ b/gtk2_ardour/region_selection.cc
@@ -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;