mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
PNS: Fix early exit from followTrivialPath
Don't mark a segment as visited until the start of the next loop. Fixes https://gitlab.com/kicad/code/kicad/-/issues/20379 (cherry picked from commit 52e9cdde992e0a888f9a66575594758dbcd2336a) Co-authored-by: Jon Evans <jon@craftyjon.com>
This commit is contained in:
parent
061cb2eba8
commit
04b9fc76d0
@ -233,7 +233,7 @@ bool TOPOLOGY::followTrivialPath( LINE* aLine2, bool aLeft, ITEM_SET& aSet,
|
|||||||
{
|
{
|
||||||
if( link->OfKind( ITEM::VIA_T ) )
|
if( link->OfKind( ITEM::VIA_T ) )
|
||||||
via = link;
|
via = link;
|
||||||
else if( visited.insert( link ).second )
|
else if( !visited.contains( link ) )
|
||||||
next_seg = static_cast<SEGMENT*>( link );
|
next_seg = static_cast<SEGMENT*>( link );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user