- modify_view_point (*cp,
- trackview.editor().unit_to_frame (_time_converter.to(cp->get_x())),
- ((_height - cp->get_y()) /_height) + ydelta, with_push);
+ if (cp->selected()) {
+ range_found = true;
+ }
+ }
+
+ if (range_found) {
+ for (vector<ControlPoint*>::iterator i = control_points.begin(); i != control_points.end(); ++i) {
+ if ((*i)->selected()) {
+ modify_view_point (*(*i), trackview.editor().unit_to_frame ((*i)->get_x()), ((_height - (*i)->get_y()) /_height) + ydelta, with_push);
+ }
+ }
+ } else {
+ ControlPoint *cp;
+ for (uint32_t i = i1 ; i <= i2; i++) {
+ cp = nth (i);
+ modify_view_point (*cp, trackview.editor().unit_to_frame (cp->get_x()), ((_height - cp->get_y()) /_height) + ydelta, with_push);
+ }