Index: trunk/src/thermal.c =================================================================== --- trunk/src/thermal.c (revision 19513) +++ trunk/src/thermal.c (revision 19514) @@ -689,6 +689,7 @@ pcb_pstk_shape_t *s = ts->shape + proto->mech_idx; if (s == shp) /* self-ref: hshadow in a mech layer type */ return NULL; + shp = s; } else return pcb_poly_from_circle(ps->x, ps->y, proto->hdia/2 + clearance);