Index: src/obj_text.c =================================================================== --- src/obj_text.c (revision 11815) +++ src/obj_text.c (revision 11816) @@ -98,6 +98,7 @@ text->Scale = Scale; text->TextString = pcb_strdup(TextString); text->fid = PCBFont->id; + text->ID = pcb_create_ID_get(); pcb_add_text_on_layer(Layer, text, PCBFont); @@ -130,7 +131,6 @@ { /* calculate size of the bounding box */ pcb_text_bbox(PCBFont, text); - text->ID = pcb_create_ID_get(); if (!Layer->text_tree) Layer->text_tree = pcb_r_create_tree(NULL, 0, 0); pcb_r_insert_entry(Layer->text_tree, (pcb_box_t *) text, 0);