Commit 6b0980d9 authored by jean-pierre charras's avatar jean-pierre charras

Gerbview: fix bug #1176538 (incorrect flashed items size, when defined by aperture macros)

parent 172bbc8f
...@@ -43,10 +43,10 @@ int scaletoIU( double aCoord, bool isMetric ) ...@@ -43,10 +43,10 @@ int scaletoIU( double aCoord, bool isMetric )
{ {
int ret; int ret;
if( isMetric ) if( isMetric ) // gerber are units in mm
ret = KiROUND( aCoord * IU_PER_MILS / 0.00254 ); ret = KiROUND( aCoord * IU_PER_MM );
else else // gerber are units in inches
ret = KiROUND( aCoord * IU_PER_MILS ); ret = KiROUND( aCoord * IU_PER_MILS * 1000.0);
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment