diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-11-18 15:18:34 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-11-18 15:18:34 +0000 |
commit | 6b72e755e3ca328a3302ebb7bf940a06683900d2 (patch) | |
tree | f857d855582b696e8d21634131738a3907556ef8 /gtk2_ardour/selection.cc | |
parent | 89fa20bb75e453f0616ee2fa8425afe14773a34c (diff) |
fix O(N^M) behaviour of control point selection (N = number of control points, M = number of automatable parameters)
git-svn-id: svn://localhost/ardour2/branches/3.0@13525 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r-- | gtk2_ardour/selection.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc index 009b40d26d..35792dcb8c 100644 --- a/gtk2_ardour/selection.cc +++ b/gtk2_ardour/selection.cc @@ -1016,8 +1016,10 @@ void Selection::add (vector<ControlPoint*> const & cps) { for (vector<ControlPoint*>::const_iterator i = cps.begin(); i != cps.end(); ++i) { - add (*i); + (*i)->set_selected (true); + points.push_back (*i); } + PointsChanged (); /* EMIT SIGNAL */ } void |