Allow rotation of a single graphic line.

Fixes https://gitlab.com/kicad/code/kicad/issues/6487
This commit is contained in:
Jeff Young 2020-11-24 23:40:17 +00:00
parent 9c7c05c161
commit 71ce00c5ce
1 changed files with 3 additions and 1 deletions

View File

@ -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 )