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

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

parent 172bbc8f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -43,10 +43,10 @@ int scaletoIU( double aCoord, bool isMetric )
{
    int ret;

    if( isMetric )
        ret = KiROUND( aCoord * IU_PER_MILS / 0.00254 );
    else
        ret = KiROUND( aCoord * IU_PER_MILS );
    if( isMetric )  // gerber are units in mm
        ret = KiROUND( aCoord * IU_PER_MM );
    else            // gerber are units in inches
        ret = KiROUND( aCoord * IU_PER_MILS * 1000.0);

    return ret;
}