Index: trunk/src/obj_elem.c =================================================================== --- trunk/src/obj_elem.c (revision 8030) +++ trunk/src/obj_elem.c (revision 8031) @@ -675,7 +675,7 @@ /* creates a new textobject as part of an element copies the values to the appropriate text object */ void pcb_element_text_set(pcb_text_t *Text, pcb_font_t *PCBFont, pcb_coord_t X, pcb_coord_t Y, - unsigned Direction, char *TextString, int Scale, pcb_flag_t Flags) + unsigned Direction, const char *TextString, int Scale, pcb_flag_t Flags) { free(Text->TextString); Text->TextString = (TextString && *TextString) ? pcb_strdup(TextString) : NULL; Index: trunk/src/obj_elem.h =================================================================== --- trunk/src/obj_elem.h (revision 8030) +++ trunk/src/obj_elem.h (revision 8031) @@ -100,7 +100,7 @@ pcb_line_t *pcb_element_line_new(pcb_element_t *Element, pcb_coord_t X1, pcb_coord_t Y1, pcb_coord_t X2, pcb_coord_t Y2, pcb_coord_t Thickness); void pcb_element_text_set(pcb_text_t *Text, pcb_font_t *PCBFont, pcb_coord_t X, pcb_coord_t Y, - unsigned Direction, char *TextString, int Scale, pcb_flag_t Flags); + unsigned Direction, const char *TextString, int Scale, pcb_flag_t Flags); /* Change the specified text on an element, either on the board (give