BOARD::BulkRemoveStaleTeardrops(): fix bug that prevent removing a teardrop.

When a teardrop is the first zone (or the only one) in list (i.e. last tested)
it was ignored, and therefore not removed.

(cherry picked from commit ccc396a6c24e3339adff804db64ffedf327aeb70)
This commit is contained in:
jean-pierre charras 2025-03-12 09:44:45 +01:00
parent 028721f3ed
commit bcb8c2097c

View File

@ -1186,7 +1186,7 @@ void BOARD::FinalizeBulkRemove( std::vector<BOARD_ITEM*>& aRemovedItems )
void BOARD::BulkRemoveStaleTeardrops( BOARD_COMMIT& aCommit )
{
for( int ii = (int) m_zones.size() - 1; ii > 0; --ii )
for( int ii = (int) m_zones.size() - 1; ii >= 0; --ii )
{
ZONE* zone = m_zones[ii];