diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index 860225eef3..a7ce620235 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -222,7 +222,7 @@ bool ZONE_FILLER::Fill( std::vector& aZones, bool aCheck, wxWin // Check for any fill dependencies. If our zone needs to be clipped by // another zone then we can't fill until that zone is filled. - for( ZONE_CONTAINER* otherZone : m_board->Zones() ) + for( ZONE_CONTAINER* otherZone : aZones ) { if( otherZone == zone ) continue; @@ -234,18 +234,6 @@ bool ZONE_FILLER::Fill( std::vector& aZones, bool aCheck, wxWin } } - for( MODULE* module : m_board->Modules() ) - { - for( ZONE_CONTAINER* otherZone : module->Zones() ) - { - if( check_fill_dependency( zone, layer, otherZone ) ) - { - canFill = false; - break; - } - } - } - if( m_progressReporter && m_progressReporter->IsCancelled() ) break;