fix O(N^M) behaviour of control point selection (N = number of control points, M...
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 18 Nov 2012 15:18:34 +0000 (15:18 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 18 Nov 2012 15:18:34 +0000 (15:18 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13525 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/selection.cc

index 009b40d26d6ce208db4f50adb14538512ba7a40b..35792dcb8c2d2080c6a18520ece94932090bf48f 100644 (file)
@@ -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