Don't call GetLayer() on a multi-layer object.

This commit is contained in:
Jeff Young 2022-02-20 23:59:38 +00:00
parent b438810b6b
commit 5544dd8018
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ bool PCB_PAINTER::Draw( const VIEW_ITEM* aItem, int aLayer )
{
// For single-layer objects, exclude all layers including ancillary layers
// such as holes, netnames, etc.
if( parentFP->GetPrivateLayers().test( item->GetLayer() ) )
if( parentFP->GetPrivateLayers().test( item->GetLayerSet().Seq()[0] ) )
return false;
}
}