Fix shadowed variable.

This commit is contained in:
Wayne Stambaugh 2021-08-17 12:54:14 -04:00
parent b14b8b5fb1
commit 9ae9301b46
1 changed files with 2 additions and 2 deletions

View File

@ -357,9 +357,9 @@ int BOARD_INSPECTION_TOOL::InspectClearance( const TOOL_EVENT& aEvent )
auto hasHole =
[]( BOARD_ITEM* aItem )
{
PAD* pad = dynamic_cast<PAD*>( aItem );
PAD* tmpPad = dynamic_cast<PAD*>( aItem );
if( pad && pad->GetDrillSizeX() > 0 && pad->GetDrillSizeY() > 0 )
if( tmpPad && tmpPad->GetDrillSizeX() > 0 && tmpPad->GetDrillSizeY() > 0 )
return true;
PCB_VIA* via = dynamic_cast<PCB_VIA*>( aItem );