Commit 8e90a616 authored by Maciej Suminski's avatar Maciej Suminski

Rotate support for pads.

parent 583de985
......@@ -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() )
......
......@@ -400,6 +400,7 @@ public:
SetLocalCoord();
}
void Rotate( const wxPoint& aRotCentre, double aAngle );
wxString GetSelectMenuText() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment