Fix logic bug when updating circular pad points.

Fixes https://gitlab.com/kicad/code/kicad/issues/9576
This commit is contained in:
Jeff Young 2021-11-09 13:09:06 +00:00
parent 18d9f6e323
commit 0631c8fc74
1 changed files with 5 additions and 7 deletions

View File

@ -1631,10 +1631,8 @@ void PCB_POINT_EDITOR::updatePoints()
} }
else if( target == 1 ) else if( target == 1 )
{ {
VECTOR2I vec = m_editPoints->Point( 0 ).GetPosition() - shapePos; shapePos.x += halfSize.x;
vec.Resize( halfSize.x ); m_editPoints->Point( 0 ).SetPosition( shapePos );
m_editPoints->Point( 0 ).SetPosition( vec + shapePos );
} }
} }
break; break;