pcad importer: fix a truncation when converting mils to IU.

The value in mils is a double, but the function to convert in IU uses int.
From master branch.
Fixes #11380 https://gitlab.com/kicad/code/kicad/issues/11380
This commit is contained in:
jean-pierre charras 2022-04-21 10:01:21 +02:00
parent 4e13677281
commit fbc6c8f8f4
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ double StrToDoublePrecisionUnits( const wxString& aStr, char aAxe,
else else
{ {
ls.ToCDouble( &i ); ls.ToCDouble( &i );
i = Mils2iu( i ); i *= IU_PER_MILS;
} }
} }
else else