Commit cc46ee0e authored by jean-pierre charras's avatar jean-pierre charras

Pcbnew: Fix Bug #1160396

parent a6232e2c
......@@ -176,9 +176,10 @@ class PCB_PARSER : public PCB_LEXER
inline int parseBoardUnits() throw( IO_ERROR )
{
// There should be no rounding issues here, since the values in the file are in mm
// and get converted to nano-meters. This product should be an integer, exactly.
return int( parseDouble() * IU_PER_MM );
// There should be no major rounding issues here,
// since the values in the file are in mm
// and get converted to nano-meters.
return KiROUND( parseDouble() * IU_PER_MM );
}
inline int parseBoardUnits( const char* aExpected ) throw( PARSE_ERROR )
......
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