Index: search.c =================================================================== --- search.c (revision 31004) +++ search.c (revision 31005) @@ -496,7 +496,7 @@ PCB_POLY_POINT_LOOP(polygon); { - d = pcb_distance2(point->X, point->Y, PosX, PosY); + d = rnd_distance2(point->X, point->Y, PosX, PosY); if (d < ctx->least) { ctx->least = d; *ctx->Polygon = polygon;