Measure Path off by a small amount
Bug #348611 reported by
Jon Goldberg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Unassigned |
Bug Description
Measure path is off by a small amount when calculating Feet.
I have a line that has a height of .250 ft. When I put in the measure Path with a scale of 200 it should get 50ft but it gets 49.8 ft. It works with Meters and CM just fine so it must be a rounding error somewhere.
this is in .46 Dev build on 3/17/09
description: | updated |
tags: | added: extensions-plugins |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Confirmed on Windows XP, inkscape rev. 21460.
The factor used by measure.py to convert px to ft is 0.2822219/ (25.4*12) , but according to inkex.py and its uuconv dictionnary (which doesn't support ft, in and yd, but gives some other conversion factors), it should be (1/3.5433070866 )/(25.4* 12). Other units are also affected.
I've replaced it in the extension, and it seems to work well.
Could someone take a look and patch the extension measure.py in SVN?