Index: distalign.c =================================================================== --- distalign.c (revision 4875) +++ distalign.c (revision 4876) @@ -246,7 +246,7 @@ dir = dir == K_X ? K_Y : K_X; /* see above */ ELEMENT_LOOP(PCB->Data); { - if (!TEST_FLAG(PCB_FLAG_SELECTED, element)) + if (!PCB_FLAG_TEST(PCB_FLAG_SELECTED, element)) continue; nsel++; } @@ -258,7 +258,7 @@ nsel = 0; ELEMENT_LOOP(PCB->Data); { - if (!TEST_FLAG(PCB_FLAG_SELECTED, element)) + if (!PCB_FLAG_TEST(PCB_FLAG_SELECTED, element)) continue; elements_by_pos[nsel].element = element; elements_by_pos[nsel++].pos = coord(element, dir, point); @@ -299,7 +299,7 @@ q = 0; ELEMENT_LOOP(PCB->Data); { - if (!TEST_FLAG(PCB_FLAG_SELECTED, element)) + if (!PCB_FLAG_TEST(PCB_FLAG_SELECTED, element)) continue; q += coord(element, dir, point); nsel++; @@ -415,7 +415,7 @@ { pcb_coord_t p, dp, dx, dy; - if (!TEST_FLAG(PCB_FLAG_SELECTED, element)) + if (!PCB_FLAG_TEST(PCB_FLAG_SELECTED, element)) continue; /* find delta from reference point to reference point */ p = coord(element, dir, point);