Check for hole before highlighting

Fixes https://gitlab.com/kicad/code/kicad/issues/9423
This commit is contained in:
Seth Hillbrand 2021-10-19 11:24:23 -07:00
parent 57f907f6e7
commit 2a6c73b8df
1 changed files with 7 additions and 3 deletions

View File

@ -481,12 +481,16 @@ void ROUTER::markViolations( NODE* aNode, ITEM_SET& aCurrent, NODE::ITEM_VECTOR&
if( holeOnly || !m_iface->IsFlashedOnLayer( itemToMark, currentItem->Layer() ) )
{
SOLID* solid = static_cast<SOLID*>( tmp.get() );
if( solid->Hole() )
{
solid->SetShape( solid->Hole()->Clone() );
// Leave the pad flashing around the highlighted hole
removeOriginal = false;
}
}
}
m_iface->DisplayItem( tmp.get(), clearance );