Index: topoly.c =================================================================== --- topoly.c (revision 28510) +++ topoly.c (revision 28511) @@ -314,7 +314,7 @@ } #undef check -pcb_poly_t *pcb_topoly_1st_outline(pcb_board_t *pcb) +pcb_poly_t *pcb_topoly_1st_outline(pcb_board_t *pcb, pcb_topoly_t how) { pcb_poly_t *poly; pcb_any_obj_t *start = pcb_topoly_find_1st_outline(pcb); @@ -327,7 +327,7 @@ pcb_poly_point_new(poly, 0, pcb->hidlib.size_y); } else - poly = pcb_topoly_conn(pcb, start, PCB_TOPOLY_FLOATING); + poly = pcb_topoly_conn(pcb, start, how); return poly; } Index: topoly.h =================================================================== --- topoly.h (revision 28510) +++ topoly.h (revision 28511) @@ -44,7 +44,7 @@ pcb_any_obj_t *pcb_topoly_find_1st_outline(pcb_board_t *pcb); /* Construct apolygon of the first line/arc on the outline layer from top-left */ -pcb_poly_t *pcb_topoly_1st_outline(pcb_board_t *pcb); +pcb_poly_t *pcb_topoly_1st_outline(pcb_board_t *pcb, pcb_topoly_t how); extern const char pcb_acts_topoly[];