Use new function GetLayerGroupNumberBySide() to make code clearer
commita07d4d2515cf57d5c65b8f6e1cc943658d1f5718
authorPeter Clifton <peter@clifton-electronics.co.uk>
Thu, 26 Jun 2014 22:47:22 +0000 (26 23:47 +0100)
committerPeter Clifton <peter@clifton-electronics.co.uk>
Fri, 27 Jun 2014 00:43:37 +0000 (27 01:43 +0100)
tree54548cdcf3ba929962e7428236aff64d6e214cfd
parent88112881ade5d1b5ab5388cc21ec6b095d81aac8
Use new function GetLayerGroupNumberBySide() to make code clearer

Replaces code calling GetLayerGroupNumberByNumber() against one of the
silk-screen layers in order to find the layer group containing the top
or bottom side of the board.

Patch includes various renaming of component -> top, and solder -> bottom
21 files changed:
src/action.c
src/autoplace.c
src/autoroute.c
src/buffer.c
src/crosshair.c
src/draw.c
src/hid/batch/batch.c
src/hid/common/flags.c
src/hid/gcode/gcode.c
src/hid/gerber/gerber.c
src/hid/gtk/gtkhid-main.c
src/hid/lesstif/main.c
src/hid/png/png.c
src/hid/ps/eps.c
src/hid/ps/ps.c
src/misc.c
src/move.c
src/puller.c
src/rats.c
src/rubberband.c
src/toporouter.c