From 74a578047ce3bb4b41325e6b24ab87ed53af9e7a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 11 Apr 2022 12:01:38 +0100 Subject: [PATCH] Make sure to add any now-necessary junctions after a rotate. Fixes https://gitlab.com/kicad/code/kicad/issues/11242 --- eeschema/tools/sch_edit_tool.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index aa3d2a046b..8cd1223256 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -729,6 +729,10 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent ) if( selection.IsHover() ) m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true ); + EE_SELECTION selectionCopy = selection; + m_toolMgr->RunAction( EE_ACTIONS::trimOverlappingWires, true, &selectionCopy ); + m_toolMgr->RunAction( EE_ACTIONS::addNeededJunctions, true, &selectionCopy ); + m_frame->RecalculateConnections( LOCAL_CLEANUP ); m_frame->TestDanglingEnds();