← Back to team overview

kicad-developers team mailing list archive

Patch to display mm to two dp instead of three


--001636c5b424369d48046f368af2 Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi Guys,

Please find attached a jpg highlighting the problem, and a quick patch
to resolve the issue.

The problem is that when working with a metric mm grid, the
coordinates vary between .002 mm. This leads to several whole units
being displayed as .001 below their actual value. This means your
brain has to work overtime trying to work out what position you're
actually pointing to. See the JPG where the values are 48.999 x 18.999

The patch resolves the problem by round to two decimal places for
metric, resulting in the display being 49.00 x 19.00 for the above
error. This is much easier on the brain!

This was bought up by some users recently on the kicad-users list,
titled Hard Metric.

Best Regards,

 --001636c5b424369d48046f368af2 Content-Type: image/jpeg; name="KiCAD_difficult_mm.jpg"
Content-Disposition: attachment; filename="KiCAD_difficult_mm.jpg"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fxeluevf0

[Attachment content not displayed.] --001636c5b424369d48046f368af2 Content-Type: application/octet-stream; name="kicad_metric_display.patch"
Content-Disposition: attachment; filename="kicad_metric_display.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fxelunx61

[Attachment content not displayed.] --001636c5b424369d48046f368af2-- 

Follow ups