From 71ce00c5ce72f261c2018941e7c803322be22f0d Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 24 Nov 2020 23:40:17 +0000 Subject: [PATCH] Allow rotation of a single graphic line. Fixes https://gitlab.com/kicad/code/kicad/issues/6487 --- eeschema/tools/sch_edit_tool.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index 8a13467ddc..7ba8119ab9 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -192,9 +192,10 @@ bool SCH_EDIT_TOOL::Init() case SCH_MARKER_T: case SCH_JUNCTION_T: case SCH_NO_CONNECT_T: - case SCH_LINE_T: case SCH_PIN_T: return false; + case SCH_LINE_T: + return item->GetLayer() != LAYER_WIRE && item->GetLayer() != LAYER_BUS; default: return true; } @@ -445,6 +446,7 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent ) break; } + case SCH_LINE_T: case SCH_BUS_BUS_ENTRY_T: case SCH_BUS_WIRE_ENTRY_T: for( int i = 0; clockwise ? i < 1 : i < 3; ++i )