From eaf4919ef807d7d2d3967d17898bfe827b84713f Mon Sep 17 00:00:00 2001 From: Marco Mattila Date: Fri, 31 Aug 2012 21:43:09 +0300 Subject: [PATCH] Take pad clearance into account in intersection detection during pcbnew zone filling. --- pcbnew/zones_convert_brd_items_to_polygons_with_Boost.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/zones_convert_brd_items_to_polygons_with_Boost.cpp b/pcbnew/zones_convert_brd_items_to_polygons_with_Boost.cpp index 80baaea477..8b2157401f 100644 --- a/pcbnew/zones_convert_brd_items_to_polygons_with_Boost.cpp +++ b/pcbnew/zones_convert_brd_items_to_polygons_with_Boost.cpp @@ -232,6 +232,7 @@ void ZONE_CONTAINER::AddClearanceAreasPolygonsToPolysList( BOARD* aPcb ) { item_clearance = pad->GetClearance() + margin; item_boundingbox = pad->GetBoundingBox(); + item_boundingbox.Inflate( item_clearance ); if( item_boundingbox.Intersects( zone_boundingbox ) ) {