mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02: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. (cherry picked from commit ccc396a6c24e3339adff804db64ffedf327aeb70)
This commit is contained in:
parent
028721f3ed
commit
bcb8c2097c
@ -1186,7 +1186,7 @@ void BOARD::FinalizeBulkRemove( std::vector<BOARD_ITEM*>& aRemovedItems )
|
|||||||
|
|
||||||
void BOARD::BulkRemoveStaleTeardrops( BOARD_COMMIT& aCommit )
|
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];
|
ZONE* zone = m_zones[ii];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user