diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c index 940c834b06d64ce24f3a881c77001fd887b4df62..e0331ed6c844e52e2a2198c9ae8711f8cfc4cdba 100644 --- a/pd/src/g_editor.c +++ b/pd/src/g_editor.c @@ -2236,17 +2236,6 @@ t_gobj *canvas_findhitbox(t_canvas *x, int xpos, int ypos, /* commented section looks for whichever is more to the right which is wrong since we are looking for topmost object */ *x1p = x1, *y1p = y1, *x2p = x2, *y2p = y2, rval = y; - } - /* if there are at least two selected objects, we'd prefer - to find a selected one (never mind which) to the one we got. */ - if (x->gl_editor && x->gl_editor->e_selection && - x->gl_editor->e_selection->sel_next && !glist_isselected(x, y)) - { - t_selection *sel; - for (sel = x->gl_editor->e_selection; sel; sel = sel->sel_next) - if (canvas_hitbox(x, sel->sel_what, xpos, ypos, &x1, &y1, &x2, &y2)) - *x1p = x1, *y1p = y1, *x2p = x2, *y2p = y2, - rval = sel->sel_what; } return (rval); }