From b468a7b5b3cee8f9af8716a77ffa313f5f2e7f5a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 29 Jan 2012 21:27:51 +0000 Subject: 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 --- gtk2_ardour/region_selection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3