Check for hole before highlighting
Fixes https://gitlab.com/kicad/code/kicad/issues/9423
This commit is contained in:
parent
57f907f6e7
commit
2a6c73b8df
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue