Fix minor rounding error in curved wire import

This commit is contained in:
Seth Hillbrand 2018-03-26 15:18:47 -07:00
parent ced0fcee1e
commit 9472444b41
1 changed files with 2 additions and 2 deletions

View File

@ -1814,8 +1814,8 @@ void EAGLE_PLUGIN::loadSignals( wxXmlNode* aSignals )
while( fabs( angle ) > fabs( delta_angle ) )
{
wxASSERT( radius > 0.0 );
wxPoint end( int( radius * cos( end_angle + angle ) + center.x ),
int( radius * sin( end_angle + angle ) + center.y ) );
wxPoint end( KiROUND( radius * cos( end_angle + angle ) + center.x ),
KiROUND( radius * sin( end_angle + angle ) + center.y ) );
TRACK* t = new TRACK( m_board );