Browse Source

Rotate support for pads.

pull/1/head
Maciej Suminski 11 years ago
parent
commit
8e90a6167b
  1. 7
      pcbnew/class_pad.cpp
  2. 1
      pcbnew/class_pad.h

7
pcbnew/class_pad.cpp

@ -829,6 +829,13 @@ int D_PAD::Compare( const D_PAD* padref, const D_PAD* padcmp )
}
void D_PAD::Rotate( const wxPoint& aRotCentre, double aAngle )
{
RotatePoint( &m_Pos, aRotCentre, aAngle );
m_Orient += aAngle;
}
wxString D_PAD::ShowPadShape() const
{
switch( GetShape() )

1
pcbnew/class_pad.h

@ -400,6 +400,7 @@ public:
SetLocalCoord();
}
void Rotate( const wxPoint& aRotCentre, double aAngle );
wxString GetSelectMenuText() const;

Loading…
Cancel
Save