Try both ends to see if one is a wire.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15178
(cherry picked from commit 5f8583cd25
)
This commit is contained in:
parent
62bf6a9d57
commit
63b0ef65e0
|
@ -1165,7 +1165,11 @@ void SCH_MOVE_TOOL::getConnectedDragItems( SCH_ITEM* aSelectedItem, const VECTOR
|
|||
|
||||
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