Index: draw_ly_spec.c =================================================================== --- draw_ly_spec.c (revision 19339) +++ draw_ly_spec.c (revision 19340) @@ -191,7 +191,7 @@ if (g->ltype & PCB_LYT_BOUNDARY) score = 1; if (g->ltype & PCB_LYT_MECH) score = 2; - if (score > *pscore) { + if (score > *dscore) { *dscore = score; *dslot = ly; }