From 78c7dc85f0c2a2ace2a384153a39f047cc60f547 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Sun, 12 Nov 2023 02:24:35 +0300 Subject: [PATCH] Fix moving tuning patterns, disable rotation. --- pcbnew/generators/pcb_tuning_pattern.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pcbnew/generators/pcb_tuning_pattern.cpp b/pcbnew/generators/pcb_tuning_pattern.cpp index 64729b7f8d..ecde7ff687 100644 --- a/pcbnew/generators/pcb_tuning_pattern.cpp +++ b/pcbnew/generators/pcb_tuning_pattern.cpp @@ -129,16 +129,12 @@ public: m_end += 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 { + // Not supported for tuning patterns +#if 0 RotatePoint( m_origin, aRotCentre, aAngle ); RotatePoint( m_end, aRotCentre, aAngle ); PCB_GROUP::Rotate( aRotCentre, aAngle ); @@ -147,7 +143,8 @@ public: m_baseLine->Rotate( aAngle, aRotCentre ); if( m_baseLineCoupled ) - m_baseLineCoupled->Rotate( aAngle, aRotCentre ); + m_baseLineCoupled->Rotate( aAngle, aRotCentre );*/ +#endif } const BOX2I GetBoundingBox() const override