Try both ends to see if one is a wire.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15178
This commit is contained in:
parent
964e42a611
commit
5f8583cd25
|
@ -1184,7 +1184,11 @@ void SCH_MOVE_TOOL::getConnectedDragItems( SCH_COMMIT* aCommit, SCH_ITEM* aSelec
|
|||
|
||||
newWire->SetFlags( IS_NEW );
|
||||
newWire->SetConnectivityDirty( true );
|
||||
newWire->SetLastResolvedState( selected );
|
||||
|
||||
if( dynamic_cast<const SCH_LINE*>( selected ) )
|
||||
newWire->SetLastResolvedState( selected );
|
||||
else if( dynamic_cast<const SCH_LINE*>( fixed ) )
|
||||
newWire->SetLastResolvedState( fixed );
|
||||
|
||||
newWire->SetEndPoint( end );
|
||||
m_frame->AddToScreen( newWire, m_frame->GetScreen() );
|
||||
|
|
Loading…
Reference in New Issue