Fix insidious bug which resets layer of SOLID when marking collision.

It's supposed to be setting the layer of the collsion display object,
not the host object, but there's a typo.

Fixes https://gitlab.com/kicad/code/kicad/issues/7712
This commit is contained in:
Jeff Young 2021-02-25 23:38:54 +00:00
parent 75032f3acd
commit b36e1c741d
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ void ROUTER::markViolations( NODE* aNode, ITEM_SET& aCurrent, NODE::ITEM_VECTOR&
clearance = aNode->GetClearance( currentItem, itemToMark );
if( itemToMark->Layers().IsMultilayer() && !currentItem->Layers().IsMultilayer() )
itemToMark->SetLayer( currentItem->Layer() );
tmp->SetLayer( currentItem->Layer() );
if( itemToMark->Kind() == ITEM::SOLID_T )
{