This commit is contained in:
Dick Hollenbeck 2010-08-10 09:11:56 -05:00
parent 940345e3e0
commit 772a1e0fd9
1 changed files with 2 additions and 0 deletions

View File

@ -204,8 +204,10 @@ void ZONE_CONTAINER::AddClearanceAreasPolygonsToPolysList( BOARD* aPcb )
* Thermal shapes will be created later if necessary * Thermal shapes will be created later if necessary
*/ */
int item_clearance; int item_clearance;
// static to avoid unnecessary memory allocation when filling many zones. // static to avoid unnecessary memory allocation when filling many zones.
static std::vector <CPolyPt> cornerBufferPolysToSubstract; static std::vector <CPolyPt> cornerBufferPolysToSubstract;
cornerBufferPolysToSubstract.clear();
D_PAD dummyPad( (MODULE*) NULL ); D_PAD dummyPad( (MODULE*) NULL );
D_PAD* nextpad; D_PAD* nextpad;