diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index fa5356e522..f443e1fd10 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -372,7 +372,7 @@ bool ZONE_FILLER::Fill( std::vector& aZones, bool aCheck, wxWin SHAPE_POLY_SET poly = zone->GetFilledPolysList( layer ); - for( int ii = 0; ii < poly.OutlineCount(); ii++ ) + for( int ii = poly.OutlineCount() - 1; ii >= 0; ii-- ) { std::vector& island = poly.Polygon( ii );