Fix drag of bus wire creating net wires
This commit is contained in:
parent
6e2724294a
commit
9ffa2955b7
|
@ -602,8 +602,11 @@ void SCH_MOVE_TOOL::getConnectedDragItems( SCH_ITEM* aOriginalItem, wxPoint aPoi
|
|||
// the selected item can be dragged.
|
||||
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 );
|
||||
}
|
||||
else
|
||||
newWire = new SCH_LINE( aPoint, LAYER_WIRE );
|
||||
|
||||
|
|
Loading…
Reference in New Issue