Index: distalign.c =================================================================== --- distalign.c (revision 17328) +++ distalign.c (revision 17329) @@ -255,7 +255,7 @@ * Defaults are Marks, First. */ static const char pcb_acts_align[] = "Align(X/Y, [Lefts/Rights/Tops/Bottoms/Centers/Marks, [First/Last/pcb_crosshair/Average[, Gridless]]])"; -static int pcb_act_align(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) +static int pcb_act_align(int argc, const char **argv) { int dir; int point; @@ -377,7 +377,7 @@ * before they were distributed. */ static const char pcb_acts_distribute[] = "Distribute(X/Y, [Lefts/Rights/Tops/Bottoms/Centers/Marks/Gaps, [First/Last/pcb_crosshair, First/Last/pcb_crosshair[, Gridless]]])"; -static int pcb_act_distribute(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) +static int pcb_act_distribute(int argc, const char **argv) { int dir; int point; @@ -466,8 +466,8 @@ /* build list of subcircuitss in orthogonal axis order */ sort_subcs_by_pos(K_distribute, dir, point); /* find the endpoints given the above options */ - s = reference_coord(K_distribute, x, y, dir, point, refa); - e = reference_coord(K_distribute, x, y, dir, point, refb); + s = reference_coord(K_distribute, pcb_crosshair.X, pcb_crosshair.Y, dir, point, refa); + e = reference_coord(K_distribute, pcb_crosshair.X, pcb_crosshair.Y, dir, point, refb); slack = e - s; /* use this divisor to calculate spacing (for 1 elt, avoid 1/0) */ divisor = (nsubcs_by_pos > 1) ? (nsubcs_by_pos - 1) : 1;