Index: obj_rat.c =================================================================== --- obj_rat.c (revision 25861) +++ obj_rat.c (revision 25862) @@ -306,7 +306,7 @@ /* (relatively) cheap thest if existing anchor is valid */ if (*path != NULL) { - ao = pcb_idpath2obj(data, *path); + ao = pcb_idpath2obj_in(data, *path); switch(ao->type) { case PCB_OBJ_LINE: if (rat_meets_line((pcb_line_t *)ao, x, y, gid)) return ao; break; case PCB_OBJ_ARC: if (rat_meets_arc((pcb_arc_t *)ao, x, y, gid)) return ao; break;