Index: act_draw.c =================================================================== --- act_draw.c (revision 34215) +++ act_draw.c (revision 34216) @@ -105,7 +105,7 @@ if (line != NULL) { RET_IDPATH(line); - if (!noundo) + if (!noundo && !pcb_is_uilayer(layer)) pcb_undo_add_obj_to_create(PCB_OBJ_LINE, layer, line, line); } return 0; @@ -146,7 +146,7 @@ if (arc != NULL) { RET_IDPATH(arc); - if (!noundo) + if (!noundo && !pcb_is_uilayer(layer)) pcb_undo_add_obj_to_create(PCB_OBJ_ARC, layer, arc, arc); } return 0; @@ -193,7 +193,7 @@ if (text != NULL) { RET_IDPATH(text); - if (!noundo) + if (!noundo && !pcb_is_uilayer(layer)) pcb_undo_add_obj_to_create(PCB_OBJ_TEXT, layer, text, text); } return 0; @@ -261,7 +261,7 @@ if (poly != NULL) { RET_IDPATH(poly); - if (!noundo) + if (!noundo && !pcb_is_uilayer(layer)) pcb_undo_add_obj_to_create(PCB_OBJ_POLY, layer, poly, poly); } return 0; @@ -395,7 +395,7 @@ pcb_poly_init_clip(data, layer, poly); pcb_add_poly_on_layer(layer, poly); RET_IDPATH(poly); - if (!noundo) + if (!noundo && !pcb_is_uilayer(layer)) pcb_undo_add_obj_to_create(PCB_OBJ_POLY, layer, poly, poly); } } @@ -485,7 +485,7 @@ pcb_add_poly_on_layer(layer, poly); RET_IDPATH(poly); - if (!noundo) + if (!noundo && !pcb_is_uilayer(layer)) pcb_undo_add_obj_to_create(PCB_OBJ_POLY, layer, poly, poly); fgw_ptr_unreg(&rnd_fgw, &argv[1], PTR_DOMAIN_POLY); return 0;