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
This commit is contained in:
Seth Hillbrand 2020-08-05 19:35:32 -07:00
parent 4b51184678
commit c57c168753
1 changed files with 1 additions and 1 deletions

View File

@ -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 );