13
0

Fix my broken logic for control point selection.

git-svn-id: svn://localhost/ardour2/branches/3.0@7663 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-08-20 22:46:15 +00:00
parent 822ee79d84
commit fac3690842

View File

@ -936,7 +936,15 @@ Selection::set (ControlPoint* cp)
return;
}
points.clear ();
/* We're going to set up the PointSelection from the selected ControlPoints
on this point's line, so we need to deselect all ControlPoints before
we re-add this one.
*/
for (uint32_t i = 0; i < cp->line().npoints(); ++i) {
cp->line().nth (i)->set_selected (false);
}
vector<ControlPoint*> cps;
cps.push_back (cp);
add (cps);