Cherry-pick fix from 7.0 branch back to master.

Fixes https://gitlab.com/kicad/code/kicad/issues/9005
This commit is contained in:
Jeff Young 2021-08-25 20:13:42 +01:00
parent 69fac89e86
commit f4905cb1ae
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ void DRC_TEST_PROVIDER_LVS::testFootprints( NETLIST& aNetlist )
auto ins = footprints.insert( footprint ); auto ins = footprints.insert( footprint );
if( !ins.second ) if( !ins.second && !( footprint->GetAttributes() & FP_BOARD_ONLY ) )
{ {
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_DUPLICATE_FOOTPRINT ); std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_DUPLICATE_FOOTPRINT );
drcItem->SetItems( footprint, *ins.first ); drcItem->SetItems( footprint, *ins.first );