Fix logic bug when updating circular pad points.
Fixes https://gitlab.com/kicad/code/kicad/issues/9576
This commit is contained in:
parent
18d9f6e323
commit
0631c8fc74
|
@ -1631,10 +1631,8 @@ void PCB_POINT_EDITOR::updatePoints()
|
|||
}
|
||||
else if( target == 1 )
|
||||
{
|
||||
VECTOR2I vec = m_editPoints->Point( 0 ).GetPosition() - shapePos;
|
||||
vec.Resize( halfSize.x );
|
||||
|
||||
m_editPoints->Point( 0 ).SetPosition( vec + shapePos );
|
||||
shapePos.x += halfSize.x;
|
||||
m_editPoints->Point( 0 ).SetPosition( shapePos );
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue