diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 9dbe211f8c..5c3a1590be 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -3164,10 +3164,9 @@ Editor::align_selection_relative (RegionPoint point, nframes_t position, const R /* move rest by the same amount */ - RegionSelection::const_iterator i = rs.begin(); - ++i; - - for (; i != rs.end(); ++i) { + sorted.pop_front(); + + for (list::iterator i = sorted.begin(); i != sorted.end(); ++i) { boost::shared_ptr region ((*i)->region());