Loading pcbnew/pcb_parser.h +4 −3 Original line number Original line Diff line number Diff line Loading @@ -176,9 +176,10 @@ class PCB_PARSER : public PCB_LEXER inline int parseBoardUnits() throw( IO_ERROR ) inline int parseBoardUnits() throw( IO_ERROR ) { { // There should be no rounding issues here, since the values in the file are in mm // There should be no major rounding issues here, // and get converted to nano-meters. This product should be an integer, exactly. // since the values in the file are in mm return int( parseDouble() * IU_PER_MM ); // and get converted to nano-meters. return KiROUND( parseDouble() * IU_PER_MM ); } } inline int parseBoardUnits( const char* aExpected ) throw( PARSE_ERROR ) inline int parseBoardUnits( const char* aExpected ) throw( PARSE_ERROR ) Loading Loading
pcbnew/pcb_parser.h +4 −3 Original line number Original line Diff line number Diff line Loading @@ -176,9 +176,10 @@ class PCB_PARSER : public PCB_LEXER inline int parseBoardUnits() throw( IO_ERROR ) inline int parseBoardUnits() throw( IO_ERROR ) { { // There should be no rounding issues here, since the values in the file are in mm // There should be no major rounding issues here, // and get converted to nano-meters. This product should be an integer, exactly. // since the values in the file are in mm return int( parseDouble() * IU_PER_MM ); // and get converted to nano-meters. return KiROUND( parseDouble() * IU_PER_MM ); } } inline int parseBoardUnits( const char* aExpected ) throw( PARSE_ERROR ) inline int parseBoardUnits( const char* aExpected ) throw( PARSE_ERROR ) Loading