LIB_CIRCLE: fix missing transform of m_EndPos in mirror and rotate.
Fixes: lp:1828655 https://bugs.launchpad.net/kicad/+bug/1828655
This commit is contained in:
parent
9cc3d6764f
commit
e19141bdc8
|
@ -140,6 +140,9 @@ void LIB_CIRCLE::MirrorHorizontal( const wxPoint& aCenter )
|
|||
m_Pos.x -= aCenter.x;
|
||||
m_Pos.x *= -1;
|
||||
m_Pos.x += aCenter.x;
|
||||
m_EndPos.x -= aCenter.x;
|
||||
m_EndPos.x *= -1;
|
||||
m_EndPos.x += aCenter.x;
|
||||
}
|
||||
|
||||
|
||||
|
@ -148,6 +151,9 @@ void LIB_CIRCLE::MirrorVertical( const wxPoint& aCenter )
|
|||
m_Pos.y -= aCenter.y;
|
||||
m_Pos.y *= -1;
|
||||
m_Pos.y += aCenter.y;
|
||||
m_EndPos.y -= aCenter.y;
|
||||
m_EndPos.y *= -1;
|
||||
m_EndPos.y += aCenter.y;
|
||||
}
|
||||
|
||||
|
||||
|
@ -156,6 +162,7 @@ void LIB_CIRCLE::Rotate( const wxPoint& aCenter, bool aRotateCCW )
|
|||
int rot_angle = aRotateCCW ? -900 : 900;
|
||||
|
||||
RotatePoint( &m_Pos, aCenter, rot_angle );
|
||||
RotatePoint( &m_EndPos, aCenter, rot_angle );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue