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
This commit is contained in:
Paul Davis 2008-02-06 03:00:34 +00:00
parent 3c1f6bc51b
commit f6b7d592f1

View file

@ -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<RegionView*>::iterator i = sorted.begin(); i != sorted.end(); ++i) {
boost::shared_ptr<Region> region ((*i)->region());