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. 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 4afe4c0aa0
commit 1e80f3a65a
1 changed files with 1 additions and 1 deletions

View File

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