From 772a1e0fd9acf7101de00b35182cf91b18cf63c8 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Tue, 10 Aug 2010 09:11:56 -0500 Subject: [PATCH] fix a bug in zone filling with Kbool: https://lists.launchpad.net/kicad-developers/msg05100.html --- pcbnew/zones_convert_brd_items_to_polygons_with_Kbool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/zones_convert_brd_items_to_polygons_with_Kbool.cpp b/pcbnew/zones_convert_brd_items_to_polygons_with_Kbool.cpp index d877d0c630..aeeee6fc73 100644 --- a/pcbnew/zones_convert_brd_items_to_polygons_with_Kbool.cpp +++ b/pcbnew/zones_convert_brd_items_to_polygons_with_Kbool.cpp @@ -204,8 +204,10 @@ void ZONE_CONTAINER::AddClearanceAreasPolygonsToPolysList( BOARD* aPcb ) * Thermal shapes will be created later if necessary */ int item_clearance; + // static to avoid unnecessary memory allocation when filling many zones. static std::vector cornerBufferPolysToSubstract; + cornerBufferPolysToSubstract.clear(); D_PAD dummyPad( (MODULE*) NULL ); D_PAD* nextpad;