diff --git a/pcbnew/connectivity/connectivity_items.h b/pcbnew/connectivity/connectivity_items.h index 21151e0f85..9eeca92764 100644 --- a/pcbnew/connectivity/connectivity_items.h +++ b/pcbnew/connectivity/connectivity_items.h @@ -298,6 +298,8 @@ public: if( m_zone->IsTeardropArea() ) return; + m_rTree.RemoveAll(); + for( unsigned int ii = 0; ii < m_fillPoly->TriangulatedPolyCount(); ++ii ) { const auto* triangleSet = m_fillPoly->TriangulatedPolygon( ii );