summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-02-06 03:00:34 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-02-06 03:00:34 +0000
commitf6b7d592f15e9a989b9b1d7018217f27a440c5b6 (patch)
tree23f53c8b81f6376c9355105958860c206863e067
parent3c1f6bc51b9aa4218781db358d231fcf16003842 (diff)
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
-rw-r--r--gtk2_ardour/editor_ops.cc7
1 files 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<RegionView*>::iterator i = sorted.begin(); i != sorted.end(); ++i) {
boost::shared_ptr<Region> region ((*i)->region());