Don't consider newly-added labels when looking for terminal items.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15313
(cherry picked from commit 6cef504d2d
)
This commit is contained in:
parent
83624acfd2
commit
acbddc904b
|
@ -835,7 +835,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;
|
||||
|
@ -861,7 +861,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