Index: trunk/src/obj_poly.h =================================================================== --- trunk/src/obj_poly.h (revision 12422) +++ trunk/src/obj_poly.h (revision 12423) @@ -170,6 +170,13 @@ return 1; } +/* read the previous contour/hole coords into x,y, without bumping the iterator */ +static inline PCB_FUNC_UNUSED void pcb_poly_vect_peek_prev(pcb_poly_it_t *it, pcb_coord_t *x, pcb_coord_t *y) +{ + *x = it->v->prev->point[0]; + *y = it->v->prev->point[1]; +} + /* Let the poly clear sorrunding polys in its layer */ #define pcb_poly_ppclear(poly) \ do { \