Index: trunk/src/gui_act.c =================================================================== --- trunk/src/gui_act.c (revision 34343) +++ trunk/src/gui_act.c (revision 34344) @@ -574,20 +574,20 @@ if (strcmp(sfield, "trace-thickness") == 0) { RND_ACT_CONVARG(4, FGW_COORD, RouteStyle, c = fgw_coord(&argv[4])); - pcb_route_style_change(PCB, number-1, &c, NULL, NULL, NULL, NULL, 1); + pcb_route_style_change(PCB, number-1, &c, NULL, NULL, NULL, NULL, NULL, 1); } else if (strcmp(sfield, "text-thickness") == 0) { RND_ACT_CONVARG(4, FGW_COORD, RouteStyle, c = fgw_coord(&argv[4])); - pcb_route_style_change(PCB, number-1, NULL, &c, NULL, NULL, NULL, 1); + pcb_route_style_change(PCB, number-1, NULL, &c, NULL, NULL, NULL, NULL, 1); } else if (strcmp(sfield, "text-scale") == 0) { int sc; RND_ACT_CONVARG(4, FGW_COORD, RouteStyle, sc = argv[4].val.nat_int); - pcb_route_style_change(PCB, number-1, NULL, NULL, &sc, NULL, NULL, 1); + pcb_route_style_change(PCB, number-1, NULL, NULL, &sc, NULL, NULL, NULL, 1); } else if (strcmp(sfield, "trace-clearance") == 0) { RND_ACT_CONVARG(4, FGW_COORD, RouteStyle, c = fgw_coord(&argv[4])); - pcb_route_style_change(PCB, number-1, NULL, NULL, NULL, &c, NULL, 1); + pcb_route_style_change(PCB, number-1, NULL, NULL, NULL, &c, NULL, NULL, 1); } else if (strcmp(sfield, "name") == 0) { const char *new_name; Index: trunk/src/route_style.c =================================================================== --- trunk/src/route_style.c (revision 34343) +++ trunk/src/route_style.c (revision 34344) @@ -303,7 +303,7 @@ }; -int pcb_route_style_change(pcb_board_t *pcb, int rstidx, rnd_coord_t *thick, rnd_coord_t *textt, int *texts, rnd_coord_t *clearance, rnd_cardinal_t *via_proto, rnd_bool undoable) +int pcb_route_style_change(pcb_board_t *pcb, int rstidx, rnd_coord_t *thick, rnd_coord_t *textt, int *texts, pcb_font_id_t *fid, rnd_coord_t *clearance, rnd_cardinal_t *via_proto, rnd_bool undoable) { undo_rst_t gtmp, *g = >mp; pcb_route_style_t *rst = vtroutestyle_get(&pcb->RouteStyle, rstidx, 0); @@ -320,6 +320,7 @@ if (thick != NULL) g->rst.Thick = *thick; if (textt != NULL) g->rst.textt = *textt; if (texts != NULL) g->rst.texts = *texts; + if (fid != NULL) g->rst.fid = *fid; if (clearance != NULL) g->rst.Clearance = *clearance; if (via_proto != NULL) { g->rst.via_proto = *via_proto; Index: trunk/src/route_style.h =================================================================== --- trunk/src/route_style.h (revision 34343) +++ trunk/src/route_style.h (revision 34344) @@ -65,7 +65,7 @@ /*** Undoable changes to route styles ***/ /* Change a field. Returns 0 on success. */ -int pcb_route_style_change(pcb_board_t *pcb, int rstidx, rnd_coord_t *thick, rnd_coord_t *textt, int *texts, rnd_coord_t *clearance, rnd_cardinal_t *via_proto, rnd_bool undoable); +int pcb_route_style_change(pcb_board_t *pcb, int rstidx, rnd_coord_t *thick, rnd_coord_t *textt, int *texts, pcb_font_id_t *fid, rnd_coord_t *clearance, rnd_cardinal_t *via_proto, rnd_bool undoable); /* Change the name. Returns 0 on success. */ int pcb_route_style_change_name(pcb_board_t *pcb, int rstidx, const char *new_name, rnd_bool undoable); Index: trunk/src_plugins/dialogs/dlg_lib_pstk.c =================================================================== --- trunk/src_plugins/dialogs/dlg_lib_pstk.c (revision 34343) +++ trunk/src_plugins/dialogs/dlg_lib_pstk.c (revision 34344) @@ -597,6 +597,7 @@ /* redraw */ hv.str = NULL; rnd_gui->attr_dlg_set_value(ctx->dlg_hid_ctx, ctx->wprev, &hv); + rnd_gui->invalidate_all(rnd_gui); } Index: trunk/src_plugins/lib_hid_pcbui/routest_dlg.c =================================================================== --- trunk/src_plugins/lib_hid_pcbui/routest_dlg.c (revision 34343) +++ trunk/src_plugins/lib_hid_pcbui/routest_dlg.c (revision 34344) @@ -80,7 +80,7 @@ hv.crd = rst->textt; rnd_gui->attr_dlg_set_value(rstdlg_ctx.dlg_hid_ctx, rstdlg_ctx.wtxtth, &hv); - sprintf(tmp, "%ld", (long int)rst->fid); + sprintf(tmp, "#%ld", (long int)rst->fid); hv.str = tmp; rnd_gui->attr_dlg_set_value(rstdlg_ctx.dlg_hid_ctx, rstdlg_ctx.wfont, &hv); @@ -171,18 +171,18 @@ name_chg_cb(rstdlg_ctx.name_timer); } else if (idx == rstdlg_ctx.wlineth) - pcb_route_style_change(PCB, rstdlg_ctx.curr, &attr->val.crd, NULL, NULL, NULL, NULL, 1); + pcb_route_style_change(PCB, rstdlg_ctx.curr, &attr->val.crd, NULL, NULL, NULL, NULL, NULL, 1); else if (idx == rstdlg_ctx.wtxtth) - pcb_route_style_change(PCB, rstdlg_ctx.curr, NULL, &attr->val.crd, NULL, NULL, NULL, 1); + pcb_route_style_change(PCB, rstdlg_ctx.curr, NULL, &attr->val.crd, NULL, NULL, NULL, NULL, 1); else if (idx == rstdlg_ctx.wfont) { printf("TODO: font change!\n"); } else if (idx == rstdlg_ctx.wtxtscale) { int tmp = attr->val.lng; - pcb_route_style_change(PCB, rstdlg_ctx.curr, NULL, NULL, &tmp, NULL, NULL, 1); + pcb_route_style_change(PCB, rstdlg_ctx.curr, NULL, NULL, &tmp, NULL, NULL, NULL, 1); } else if (idx == rstdlg_ctx.wclr) - pcb_route_style_change(PCB, rstdlg_ctx.curr, NULL, NULL, NULL, &attr->val.crd, NULL, 1); + pcb_route_style_change(PCB, rstdlg_ctx.curr, NULL, NULL, NULL, NULL, &attr->val.crd, NULL, 1); else if (idx == rstdlg_ctx.wviahole) { rst->Hole = attr->val.crd; if (rst->Hole * 1.1 >= rstdlg_ctx.dlg[rstdlg_ctx.wviaring].val.crd) {