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:
parent
4b51184678
commit
c57c168753
|
@ -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…
Reference in New Issue