Check for hole before highlighting
Fixes https://gitlab.com/kicad/code/kicad/issues/9423
This commit is contained in:
parent
57f907f6e7
commit
2a6c73b8df
|
@ -481,10 +481,14 @@ void ROUTER::markViolations( NODE* aNode, ITEM_SET& aCurrent, NODE::ITEM_VECTOR&
|
||||||
if( holeOnly || !m_iface->IsFlashedOnLayer( itemToMark, currentItem->Layer() ) )
|
if( holeOnly || !m_iface->IsFlashedOnLayer( itemToMark, currentItem->Layer() ) )
|
||||||
{
|
{
|
||||||
SOLID* solid = static_cast<SOLID*>( tmp.get() );
|
SOLID* solid = static_cast<SOLID*>( tmp.get() );
|
||||||
solid->SetShape( solid->Hole()->Clone() );
|
|
||||||
|
|
||||||
// Leave the pad flashing around the highlighted hole
|
if( solid->Hole() )
|
||||||
removeOriginal = false;
|
{
|
||||||
|
solid->SetShape( solid->Hole()->Clone() );
|
||||||
|
|
||||||
|
// Leave the pad flashing around the highlighted hole
|
||||||
|
removeOriginal = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue