Commit 772a1e0f authored by Dick Hollenbeck's avatar Dick Hollenbeck

fix a bug in zone filling with Kbool: https://lists.launchpad.net/kicad-developers/msg05100.html

parent 940345e3
......@@ -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 <CPolyPt> cornerBufferPolysToSubstract;
cornerBufferPolysToSubstract.clear();
D_PAD dummyPad( (MODULE*) NULL );
D_PAD* nextpad;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment