36 if( !zone->GetIsRuleArea() && !zone->IsTeardropArea() && zone->IsOnCopperLayer() )
38 auto zone_clone = std::shared_ptr<ZONE>(
static_cast<ZONE*
>( zone->Clone() ) );
52 std::sort( sortedClonedZones.begin(), sortedClonedZones.end(),
55 return l->GetAssignedPriority() > r->GetAssignedPriority();
58 unsigned currentPriority = sortedClonedZones.size() - 1;
60 for(
ZONE* zone : sortedClonedZones )
62 m_zonePriorities[zone] = std::make_pair<>( currentPriority, currentPriority );