7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

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.
This commit is contained in:
jean-pierre charras 2025-03-12 09:44:45 +01:00
parent 95e6ca44c6
commit ccc396a6c2

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];