Browse Source

Restore over-aggressive CLion cleanup.

newinvert
Jeff Young 2 years ago
parent
commit
9a757e8e44
  1. 8
      pcbnew/pcb_track.cpp
  2. 1
      pcbnew/pcb_track.h

8
pcbnew/pcb_track.cpp

@ -1154,6 +1154,14 @@ EDA_ANGLE PCB_ARC::GetArcAngleStart() const
}
// Note: used in python tests. Ignore CLion's claim that it's unused....
EDA_ANGLE PCB_ARC::GetArcAngleEnd() const
{
EDA_ANGLE angleEnd( m_End - GetPosition() );
return angleEnd.Normalize();
}
bool PCB_TRACK::cmp_tracks::operator() ( const PCB_TRACK* a, const PCB_TRACK* b ) const
{
if( a->GetNetCode() != b->GetNetCode() )

1
pcbnew/pcb_track.h

@ -323,6 +323,7 @@ public:
double GetRadius() const;
EDA_ANGLE GetAngle() const;
EDA_ANGLE GetArcAngleStart() const;
EDA_ANGLE GetArcAngleEnd() const; // Called by Python; ignore CLion's claim that it's unused
virtual bool HitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const override;
virtual bool HitTest( const BOX2I& aRect, bool aContained = true,

Loading…
Cancel
Save