Index: trunk/src/board.c =================================================================== --- trunk/src/board.c (revision 31703) +++ trunk/src/board.c (revision 31704) @@ -427,7 +427,7 @@ if (to < from) return -1; - for(gid = from, grp = pcb->LayerGroups.grp+from; gid <= pcb->LayerGroups.len+to; gid++,grp++) { + for(gid = from, grp = pcb->LayerGroups.grp+from; gid <= to; gid++,grp++) { const char *s; if (!(grp->ltype & accept))