Move preview items using FP orientation

Fixes https://gitlab.com/kicad/code/kicad/issues/7600
This commit is contained in:
Seth Hillbrand 2021-02-18 16:31:31 -08:00
parent 05b559c9dc
commit 54282dffe3
1 changed files with 2 additions and 1 deletions

View File

@ -1628,7 +1628,8 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
if( drawing->Type() == PCB_FP_SHAPE_T )
{
FP_SHAPE* shape = static_cast<FP_SHAPE*>( previewItem );
shape->PCB_SHAPE::Move( (wxPoint) offset );
wxPoint fp_offset = wxPoint( offset.Rotate( footprint->GetOrientationRadians() ) );
shape->FP_SHAPE::Move( fp_offset );
}
else
{