Browse Source

Fix drag of bus wire creating net wires

6.0.7
Jon Evans 4 years ago
parent
commit
9ffa2955b7
  1. 5
      eeschema/tools/sch_move_tool.cpp

5
eeschema/tools/sch_move_tool.cpp

@ -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…
Cancel
Save