Browse Source

PNS: Remove items from all layers

subIndices control which layers the items are inserted onto and removed
from.  The iterator to remove items needs to be inclusive of the
first/last layers

Fixes https://gitlab.com/kicad/code/kicad/issues/5090

Fixes https://gitlab.com/kicad/code/kicad/issues/5075

Fixes https://gitlab.com/kicad/code/kicad/issues/5034
pull/16/head
Seth Hillbrand 5 years ago
parent
commit
c57c168753
  1. 2
      pcbnew/router/pns_index.cpp

2
pcbnew/router/pns_index.cpp

@ -49,7 +49,7 @@ void INDEX::Remove( ITEM* aItem )
if( m_subIndices.size() <= static_cast<size_t>( range.End() ) )
return;
for( int i = range.Start(); i < range.End(); ++i )
for( int i = range.Start(); i <= range.End(); ++i )
m_subIndices[i].Remove( aItem );
m_allItems.erase( aItem );

Loading…
Cancel
Save