- return select_all_within (x1, x2, y1, y2, selection->tracks, op);
+ double const size = clicked_control_point->size ();
+
+ nframes64_t const x1 = pixel_to_frame (clicked_control_point->get_x() - size / 2);
+ nframes64_t const x2 = pixel_to_frame (clicked_control_point->get_x() + size / 2);
+ double y1 = clicked_control_point->get_y() - size / 2;
+ double y2 = clicked_control_point->get_y() + size / 2;
+
+ /* convert the y values to trackview space */
+ double dummy = 0;
+ clicked_control_point->line().parent_group().i2w (dummy, y1);
+ clicked_control_point->line().parent_group().i2w (dummy, y2);
+ _trackview_group->w2i (dummy, y1);
+ _trackview_group->w2i (dummy, y2);
+
+ /* and set up the selection */
+ return select_all_within (x1, x2, y1, y2, selection->tracks, Selection::Set);