From d3d0bdbe17102c7bfe0b91f1eca63c766f9aa754 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 9 Jul 2019 00:14:10 +0100 Subject: [PATCH] Go back to rotating selection around center. Fixes: lp:https://bugs.launchpad.net/kicad/+bug/1833371 * https://bugs.launchpad.net/kicad/+bug/https://bugs.launchpad.net/kicad/+bug/1833371 --- eeschema/tools/sch_edit_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index cd0432d0b1..19e81a9971 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -444,7 +444,7 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent ) } else if( selection.GetSize() > 1 ) { - rotPoint = (wxPoint)selection.GetReferencePoint(); + rotPoint = m_frame->GetNearestGridPosition( (wxPoint)selection.GetCenter() ); for( unsigned ii = 0; ii < selection.GetSize(); ii++ ) {