From f6b7d592f15e9a989b9b1d7018217f27a440c5b6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 6 Feb 2008 03:00:34 +0000 Subject: [PATCH] fix align_selection_relative() to use regions once only, and in the correct order git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3016 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_ops.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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());