From e9205a0740a6301b8b4f1692c9bcb0e703977cc6 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 18 Oct 2021 13:37:40 -0700 Subject: [PATCH] Fix mistaken comparison in highlighting Need to compare between elements colliding Fixes https://gitlab.com/kicad/code/kicad/issues/9413 --- pcbnew/router/pns_router.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/router/pns_router.cpp b/pcbnew/router/pns_router.cpp index 6ef6915ebc..a0354518f6 100644 --- a/pcbnew/router/pns_router.cpp +++ b/pcbnew/router/pns_router.cpp @@ -478,7 +478,7 @@ void ROUTER::markViolations( NODE* aNode, ITEM_SET& aCurrent, NODE::ITEM_VECTOR& if( itemToMark->Kind() == ITEM::SOLID_T ) { - if( holeOnly || !m_iface->IsFlashedOnLayer( itemToMark, itemToMark->Layer() ) ) + if( holeOnly || !m_iface->IsFlashedOnLayer( itemToMark, currentItem->Layer() ) ) { SOLID* solid = static_cast( tmp.get() ); solid->SetShape( solid->Hole()->Clone() );