Fix typo (found by Coverity).

This commit is contained in:
Jeff Young 2021-04-11 10:32:15 +01:00
parent 675444a646
commit 29e5882637
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ COLOR4D PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer ) cons
}
else if( IsHoleLayer( originalLayer ) )
{
const VIA* via = static_cast<const VIA*>( item );
const VIA* via = dynamic_cast<const VIA*>( item );
VIATYPE viaType = via ? via->GetViaType() : VIATYPE::NOT_DEFINED;
if( via && ( viaType == VIATYPE::BLIND_BURIED || viaType == VIATYPE::MICROVIA ) )