Fix moving tuning patterns, disable rotation.

This commit is contained in:
Alex Shvartzkop 2023-11-12 02:24:35 +03:00
parent dc9df9517d
commit 78c7dc85f0
1 changed files with 4 additions and 7 deletions

View File

@ -129,16 +129,12 @@ public:
m_end += aMoveVector; m_end += aMoveVector;
PCB_GROUP::Move( aMoveVector ); PCB_GROUP::Move( aMoveVector );
if( m_baseLine )
m_baseLine->Move( aMoveVector );
if( m_baseLineCoupled )
m_baseLineCoupled->Move( aMoveVector );
} }
void Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle ) override void Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle ) override
{ {
// Not supported for tuning patterns
#if 0
RotatePoint( m_origin, aRotCentre, aAngle ); RotatePoint( m_origin, aRotCentre, aAngle );
RotatePoint( m_end, aRotCentre, aAngle ); RotatePoint( m_end, aRotCentre, aAngle );
PCB_GROUP::Rotate( aRotCentre, aAngle ); PCB_GROUP::Rotate( aRotCentre, aAngle );
@ -147,7 +143,8 @@ public:
m_baseLine->Rotate( aAngle, aRotCentre ); m_baseLine->Rotate( aAngle, aRotCentre );
if( m_baseLineCoupled ) if( m_baseLineCoupled )
m_baseLineCoupled->Rotate( aAngle, aRotCentre ); m_baseLineCoupled->Rotate( aAngle, aRotCentre );*/
#endif
} }
const BOX2I GetBoundingBox() const override const BOX2I GetBoundingBox() const override