[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: [PATCH] Fix distance display in lesstif HID.
On Mon, Aug 01, 2011 at 04:51:51PM +0200, Gabriel Paubert wrote:
> 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).
>
Thanks, Gabriel. I have pushed your fix.
In future, when I convert the lesstif HID to allow arbitrary
user units, I will use the default precision for pcb-printf.
This will be 0 for cmils, 2 for mils, 4 for mm, etc.
--
Andrew Poelstra
Email: asp11 at sfu.ca OR apoelstra at wpsoftware.net
Web: http://www.wpsoftware.net/andrew/
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user