Index: trunk/src/obj_pstk.c =================================================================== --- trunk/src/obj_pstk.c (revision 29018) +++ trunk/src/obj_pstk.c (revision 29019) @@ -1237,7 +1237,7 @@ return ps->thermals.shape + lid; } -void pcb_pstk_set_thermal(pcb_pstk_t *ps, unsigned long lid, unsigned char shape) +void pcb_pstk_set_thermal(pcb_pstk_t *ps, unsigned long lid, unsigned char shape, int undoable) { unsigned char *th = pcb_pstk_get_thermal(ps, lid, 1); if (th != NULL) Index: trunk/src/obj_pstk.h =================================================================== --- trunk/src/obj_pstk.h (revision 29018) +++ trunk/src/obj_pstk.h (revision 29019) @@ -108,7 +108,7 @@ unsigned int pcb_pstk_hash(const pcb_host_trans_t *tr, const pcb_pstk_t *p); -void pcb_pstk_set_thermal(pcb_pstk_t *ps, unsigned long lid, unsigned char shape); +void pcb_pstk_set_thermal(pcb_pstk_t *ps, unsigned long lid, unsigned char shape, int undoable); unsigned char *pcb_pstk_get_thermal(pcb_pstk_t *ps, unsigned long lid, pcb_bool_t alloc); pcb_pstk_t *pcb_pstk_by_id(pcb_data_t *base, long int ID); Index: trunk/src/obj_pstk_op.c =================================================================== --- trunk/src/obj_pstk_op.c (revision 29018) +++ trunk/src/obj_pstk_op.c (revision 29019) @@ -162,7 +162,7 @@ pcb_poly_restore_to_poly(pcb->Data, PCB_OBJ_PSTK, layer, ps); TODO("undo") - pcb_pstk_set_thermal(ps, ctx->chgtherm.lid, ctx->chgtherm.style); + pcb_pstk_set_thermal(ps, ctx->chgtherm.lid, ctx->chgtherm.style, 0); pcb_undo_add_obj_to_clear_poly(PCB_OBJ_PSTK, ps, ps, ps, pcb_true); pcb_poly_clear_from_poly(pcb->Data, PCB_OBJ_PSTK, layer, ps);