diff --git a/src/callback.c b/src/callback.c index 2dcb533c..84814289 100644 --- a/src/callback.c +++ b/src/callback.c @@ -1753,7 +1753,7 @@ static int edit_line_point(int state) static int edit_wire_point(int state) { int wire_n = -1; - dbg(1, "edit_wire_point\n"); + dbg(1, "edit_wire_point, ds = %g\n", xctx->cadhalfdotsize); wire_n = xctx->sel_array[0].n; /* wire point: Check is user is clicking a control point of a wire */ if(wire_n >= 0) { diff --git a/src/findnet.c b/src/findnet.c index 26e52402..2616a697 100644 --- a/src/findnet.c +++ b/src/findnet.c @@ -25,7 +25,7 @@ static double distance; /* safe to keep even with multiple schematics */ static Selected sel; /* safe to keep even with multiple schematics */ -static void find_closest_net(double mx, double my) +static void find_closest_wire(double mx, double my) /* returns the net that is closest to the mouse pointer */ /* if there are nets and distance < CADWIREMINDIST */ { @@ -480,7 +480,7 @@ Selected find_closest_obj(double mx, double my, int override_lock) find_closest_arc(mx, my); /* dbg(1, "2 find_closest_obj(): sel.n=%d, sel.col=%d, sel.type=%d\n", sel.n, sel.col, sel.type); */ find_closest_text(mx, my); - find_closest_net(mx, my); + find_closest_wire(mx, my); find_closest_element(mx, my, override_lock); return sel; /*sel.type = 0 if nothing found */ }