Try both ends to see if one is a wire.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15178
This commit is contained in:
Jeff Young 2023-07-13 18:20:01 +01:00
parent 964e42a611
commit 5f8583cd25
1 changed files with 5 additions and 1 deletions

View File

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