Fix drag of bus wire creating net wires

This commit is contained in:
Jon Evans 2021-06-03 22:29:04 -04:00
parent 6e2724294a
commit 9ffa2955b7
1 changed files with 4 additions and 1 deletions

View File

@ -602,8 +602,11 @@ void SCH_MOVE_TOOL::getConnectedDragItems( SCH_ITEM* aOriginalItem, wxPoint aPoi
// the selected item can be dragged. // the selected item can be dragged.
SCH_LINE* newWire = nullptr; SCH_LINE* newWire = nullptr;
if( test->GetLayer() == LAYER_BUS_JUNCTION ) if( test->GetLayer() == LAYER_BUS_JUNCTION ||
aOriginalItem->GetLayer() == LAYER_BUS )
{
newWire = new SCH_LINE( aPoint, LAYER_BUS ); newWire = new SCH_LINE( aPoint, LAYER_BUS );
}
else else
newWire = new SCH_LINE( aPoint, LAYER_WIRE ); newWire = new SCH_LINE( aPoint, LAYER_WIRE );