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;