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

This commit is contained in:
Jeff Young 2022-03-05 22:49:20 +00:00
parent cdd3fd416e
commit 1fc99dd2c0
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ bool DRC_TEST_PROVIDER_DISALLOW::Run()
drcItem->SetItems( item );
drcItem->SetViolatingRule( constraint.GetParentRule() );
reportViolation( drcItem, item->GetPosition(), item->GetLayer() );
reportViolation( drcItem, item->GetPosition(), item->GetLayerSet().Seq()[0] );
}
};