From f95651841ef8389ee22c2055ef4e076ad2f3933c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 22 Aug 2020 15:51:59 +0100 Subject: [PATCH] Report all extra footprints, even if they're duplicates. Fixes https://gitlab.com/kicad/code/kicad/issues/5303 --- pcbnew/drc/footprint_tester.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/drc/footprint_tester.cpp b/pcbnew/drc/footprint_tester.cpp index c293a5a1f8..1e6f954d65 100644 --- a/pcbnew/drc/footprint_tester.cpp +++ b/pcbnew/drc/footprint_tester.cpp @@ -76,7 +76,7 @@ void TestFootprints( NETLIST& aNetlist, BOARD* aBoard, std::vectorGetDesignSettings().Ignore( DRCE_EXTRA_FOOTPRINT ) ) { // Search for component footprints found on board but not in netlist. - for( auto module : mods ) + for( MODULE* module : aBoard->Modules() ) { COMPONENT* component = aNetlist.GetComponentByReference( module->GetReference() );