Hi, in src/did/lesstif/main.c, the Distance function is called with the parameters in the wrong order.
This small patches fixes the problem. I still think that the format is wrong, or at least the rounding to integer mm/mil taking only the grid into account, but I've not yet decided on how to fix it. The worse is that often the display is wrong because the decimal part is truncated (displaying say -24 between two grid points on a 5mil grid). Gabriel diff --git a/src/hid/lesstif/main.c b/src/hid/lesstif/main.c index 811ac26..be9a330 100644 --- a/src/hid/lesstif/main.c +++ b/src/hid/lesstif/main.c @@ -2321,7 +2321,7 @@ mark_delta_to_widget (BDimension dx, BDimension dy, Widget w) else { int angle = atan2 (dy, -dx) * 180 / M_PI; - BDimension dist = Distance (0, dx, 0, dy); + BDimension dist = Distance (0, 0, dx, dy); buf = pcb_g_strdup_printf ("%m+%+.*mS, %+.*mS (%.*mS, %d\260)", UUNIT, prec, dx, prec, dy, prec, dist, angle); _______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user