From: Paul Davis Date: Sun, 18 Nov 2012 15:18:34 +0000 (+0000) Subject: fix O(N^M) behaviour of control point selection (N = number of control points, M... X-Git-Tag: 3.0~551 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=6b72e755e3ca328a3302ebb7bf940a06683900d2;p=ardour.git 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 --- 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 const & cps) { for (vector::const_iterator i = cps.begin(); i != cps.end(); ++i) { - add (*i); + (*i)->set_selected (true); + points.push_back (*i); } + PointsChanged (); /* EMIT SIGNAL */ } void