Fix copy-pasta

testing 'othervia' for dynamic_cast success needs to use `othervia`
rather than `via` which might still be null

Fixes Sentry issue KICAD-5K
This commit is contained in:
Seth Hillbrand 2023-02-10 13:33:21 -08:00
parent 6fb9d190ac
commit 90a388571e
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ void DRC_TEST_PROVIDER_SOLDER_MASK::testItemAgainstItems( BOARD_ITEM* aItem, con
if( otherPad )
clearance += otherPad->GetSolderMaskExpansion();
else if( otherVia && !via->IsTented() )
else if( otherVia && !otherVia->IsTented() )
clearance += otherVia->GetSolderMaskExpansion();
if( itemShape->Collide( otherShape.get(), clearance, &actual, &pos ) )