[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:31:01PM -0700, Andrew Poelstra wrote:
> 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.

Fine, than I'll stop worrying about it. 

Right now I sometimes have to set the grid to something like 2.5mil 
when I only needed 5 mil for the sole purpose of displaying 
the fractional part in the relative coordinates window.

	Gabriel


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user