Cherry-pick fix from 7.0 branch back to master.
Fixes https://gitlab.com/kicad/code/kicad/issues/9005
This commit is contained in:
parent
69fac89e86
commit
f4905cb1ae
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue