From 54282dffe3800f9b93b73664acc11c0697b15dcb Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 18 Feb 2021 16:31:31 -0800 Subject: [PATCH] Move preview items using FP orientation Fixes https://gitlab.com/kicad/code/kicad/issues/7600 --- pcbnew/router/router_tool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index 4e2754231a..b1eda76001 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -1628,7 +1628,8 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent ) if( drawing->Type() == PCB_FP_SHAPE_T ) { FP_SHAPE* shape = static_cast( previewItem ); - shape->PCB_SHAPE::Move( (wxPoint) offset ); + wxPoint fp_offset = wxPoint( offset.Rotate( footprint->GetOrientationRadians() ) ); + shape->FP_SHAPE::Move( fp_offset ); } else {