diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index 31f9ebf351..689650b63c 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -191,6 +191,10 @@ bool ZONE_FILLER::Fill( std::vector aZones, bool aCheck ) for( auto& zone : toFill ) { + // Non-net zones do not have islands by definition + if( zone.m_zone->GetNetCode() <= 0 ) + continue; + std::sort( zone.m_islands.begin(), zone.m_islands.end(), std::greater() ); SHAPE_POLY_SET poly = zone.m_zone->GetFilledPolysList();