Index: trunk/src/rats.c =================================================================== --- trunk/src/rats.c (revision 10834) +++ trunk/src/rats.c (revision 10835) @@ -221,7 +221,7 @@ } net = pcb_net_new(Wantlist); if (menu->Style) { - int idx = pcb_route_style_lookup(&PCB->RouteStyle, 0, 0, 0, 0, menu->Style); + int idx = pcb_route_style_lookup(&PCB->RouteStyle, -1, -1, -1, -1, menu->Style); if (idx >= 0) net->Style = PCB->RouteStyle.array+idx; } Index: trunk/src/route_style.c =================================================================== --- trunk/src/route_style.c (revision 10834) +++ trunk/src/route_style.c (revision 10835) @@ -169,7 +169,7 @@ return 0; } -#define cmp(a,b) (((a) != 0) && (coord_abs((a)-(b)) > 32)) +#define cmp(a,b) (((a) != -1) && (coord_abs((a)-(b)) > 32)) #define cmps(a,b) (((a) != NULL) && (strcmp((a), (b)) != 0)) int pcb_route_style_lookup(vtroutestyle_t *styles, pcb_coord_t Thick, pcb_coord_t Diameter, pcb_coord_t Hole, pcb_coord_t Clearance, char *Name) { Index: trunk/src/route_style.h =================================================================== --- trunk/src/route_style.h (revision 10834) +++ trunk/src/route_style.h (revision 10835) @@ -45,7 +45,7 @@ int pcb_use_route_style_idx(vtroutestyle_t *styles, int idx); /* Compare supplied parameters to each style in the vector and return the index - of the first matching style. All non-0 parameters need to match to accept + of the first matching style. All non-(-1) parameters need to match to accept a style. Return -1 on no match. */ int pcb_route_style_lookup(vtroutestyle_t *styles, pcb_coord_t Thick, pcb_coord_t Diameter, pcb_coord_t Hole, pcb_coord_t Clearance, char *Name);