Index: trunk/src/route_style.c =================================================================== --- trunk/src/route_style.c (revision 32788) +++ trunk/src/route_style.c (revision 32789) @@ -290,7 +290,7 @@ }; -int pcb_route_style_change(pcb_board_t *pcb, int rstidx, rnd_coord_t *thick, rnd_coord_t *textt, rnd_coord_t *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, 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); Index: trunk/src/route_style.h =================================================================== --- trunk/src/route_style.h (revision 32788) +++ trunk/src/route_style.h (revision 32789) @@ -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, rnd_coord_t *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, 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, char *new_name, rnd_bool undoable); Index: trunk/src/vtroutestyle.h =================================================================== --- trunk/src/vtroutestyle.h (revision 32788) +++ trunk/src/vtroutestyle.h (revision 32789) @@ -13,7 +13,7 @@ typedef struct { rnd_coord_t Thick; /* line thickness */ rnd_coord_t textt; /* text thickness */ - rnd_coord_t texts; /* text scale */ + int texts; /* text scale */ rnd_coord_t Clearance; /* min. separation from other nets */ rnd_cardinal_t via_proto; /* via padstack prototype ID */ int via_proto_set; /* 1 if via_proto is set/valid, 0 for old file formats */ Index: trunk/src_plugins/lib_hid_pcbui/routest_dlg.c =================================================================== --- trunk/src_plugins/lib_hid_pcbui/routest_dlg.c (revision 32788) +++ trunk/src_plugins/lib_hid_pcbui/routest_dlg.c (revision 32789) @@ -72,7 +72,7 @@ hv.crd = rst->textt; rnd_gui->attr_dlg_set_value(rstdlg_ctx.dlg_hid_ctx, rstdlg_ctx.wtxtth, &hv); - hv.crd = rst->texts; + hv.lng = rst->texts; rnd_gui->attr_dlg_set_value(rstdlg_ctx.dlg_hid_ctx, rstdlg_ctx.wtxtscale, &hv); hv.crd = rst->Clearance; @@ -163,7 +163,7 @@ else if (idx == rstdlg_ctx.wtxtth) pcb_route_style_change(PCB, rstdlg_ctx.curr, NULL, &attr->val.crd, NULL, NULL, NULL, 1); else if (idx == rstdlg_ctx.wtxtscale) - pcb_route_style_change(PCB, rstdlg_ctx.curr, NULL, NULL, &attr->val.crd, NULL, NULL, 1); + pcb_route_style_change(PCB, rstdlg_ctx.curr, NULL, NULL, &attr->val.lng, 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); else if (idx == rstdlg_ctx.wviahole) { @@ -313,10 +313,10 @@ RND_DAD_CHANGE_CB(rstdlg_ctx.dlg, rst_change_cb); RND_DAD_LABEL(rstdlg_ctx.dlg, "Text scale:"); - RND_DAD_COORD(rstdlg_ctx.dlg); + RND_DAD_INTEGER(rstdlg_ctx.dlg); rstdlg_ctx.wtxtscale = RND_DAD_CURRENT(rstdlg_ctx.dlg); RND_DAD_HELP(rstdlg_ctx.dlg, "Text size scale in %; 100 means normal size"); - RND_DAD_MINMAX(rstdlg_ctx.dlg, 1, RND_MAX_COORD); + RND_DAD_MINMAX(rstdlg_ctx.dlg, 1, 100000); RND_DAD_CHANGE_CB(rstdlg_ctx.dlg, rst_change_cb); RND_DAD_LABEL(rstdlg_ctx.dlg, "Clearance:");