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:
parent
4e13677281
commit
fbc6c8f8f4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue