Don't consider newly-added labels when looking for terminal items.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15313
This commit is contained in:
parent
f18feb2a46
commit
6cef504d2d
|
@ -847,7 +847,7 @@ bool SCH_SCREEN::IsTerminalPoint( const VECTOR2I& aPosition, int aLayer ) const
|
|||
|
||||
label = GetLabel( aPosition );
|
||||
|
||||
if( label && label->IsConnected( aPosition ) )
|
||||
if( label && !label->IsNew() && label->IsConnected( aPosition ) )
|
||||
return true;
|
||||
|
||||
break;
|
||||
|
@ -873,7 +873,7 @@ bool SCH_SCREEN::IsTerminalPoint( const VECTOR2I& aPosition, int aLayer ) const
|
|||
|
||||
label = GetLabel( aPosition, 1 );
|
||||
|
||||
if( label && label->IsConnected( aPosition ) )
|
||||
if( label && !label->IsNew() && label->IsConnected( aPosition ) )
|
||||
return true;
|
||||
|
||||
sheetPin = GetSheetPin( aPosition );
|
||||
|
|
Loading…
Reference in New Issue