diff --git a/pcbnew/router/pns_kicad_iface.cpp b/pcbnew/router/pns_kicad_iface.cpp index 530112f00f..2f44ead9de 100644 --- a/pcbnew/router/pns_kicad_iface.cpp +++ b/pcbnew/router/pns_kicad_iface.cpp @@ -1647,7 +1647,7 @@ void PNS_KICAD_IFACE::AddItem( PNS::ITEM* aItem ) void PNS_KICAD_IFACE::Commit() { - std::set processedMods; + std::set processedFootprints; EraseView(); @@ -1659,10 +1659,10 @@ void PNS_KICAD_IFACE::Commit() VECTOR2I p_orig = footprint->GetPosition(); VECTOR2I p_new = p_orig + offset; - if( processedMods.find( footprint ) != processedMods.end() ) + if( processedFootprints.find( footprint ) != processedFootprints.end() ) continue; - processedMods.insert( footprint ); + processedFootprints.insert( footprint ); m_commit->Modify( footprint ); footprint->SetPosition( wxPoint( p_new.x, p_new.y ) ); }