Don't call GetLayer() on a multi-layer object.
This commit is contained in:
parent
b438810b6b
commit
5544dd8018
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue