mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
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 )
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user