Fix minor rounding error in curved wire import
This commit is contained in:
parent
ced0fcee1e
commit
9472444b41
|
@ -1814,8 +1814,8 @@ void EAGLE_PLUGIN::loadSignals( wxXmlNode* aSignals )
|
||||||
while( fabs( angle ) > fabs( delta_angle ) )
|
while( fabs( angle ) > fabs( delta_angle ) )
|
||||||
{
|
{
|
||||||
wxASSERT( radius > 0.0 );
|
wxASSERT( radius > 0.0 );
|
||||||
wxPoint end( int( radius * cos( end_angle + angle ) + center.x ),
|
wxPoint end( KiROUND( radius * cos( end_angle + angle ) + center.x ),
|
||||||
int( radius * sin( end_angle + angle ) + center.y ) );
|
KiROUND( radius * sin( end_angle + angle ) + center.y ) );
|
||||||
|
|
||||||
TRACK* t = new TRACK( m_board );
|
TRACK* t = new TRACK( m_board );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue