Index: obj_poly.h =================================================================== --- obj_poly.h (revision 9098) +++ obj_poly.h (revision 9099) @@ -114,7 +114,7 @@ pcb_layer_t *layer = (top)->Layer; \ for (l = 0; l < ((top)->LayerN > 0 ? (top)->LayerN : PCB->Data->LayerN); l++, layer++) \ { \ - if (layer->On) \ + if (layer->meta.real.vis) \ PCB_POLY_LOOP(layer)