Index: obj_rat.c =================================================================== --- obj_rat.c (revision 20177) +++ obj_rat.c (revision 20178) @@ -72,6 +72,7 @@ pcb_rat_t *new_obj; new_obj = calloc(sizeof(pcb_rat_t), 1); + new_obj->ID = pcb_create_ID_get(); new_obj->type = PCB_OBJ_RAT; pcb_rat_reg(data, new_obj); @@ -94,7 +95,6 @@ if (!Line) return Line; - Line->ID = pcb_create_ID_get(); Line->Flags = Flags; PCB_FLAG_SET(PCB_FLAG_RAT, Line); Line->Thickness = Thickness;