Index: polygon_act.c =================================================================== --- polygon_act.c (revision 29317) +++ polygon_act.c (revision 29318) @@ -98,7 +98,7 @@ PCB_ACT_CONVARG(1, FGW_KEYWORD, Polygon, op = fgw_keyword(&argv[1])); - if ((argc > 1) && ((pcbhl_conf.editor.mode == PCB_MODE_POLYGON) || (pcbhl_conf.editor.mode == PCB_MODE_POLYGON_HOLE))) { + if ((argc > 1) && ((pcbhl_conf.editor.mode == pcb_crosshair.tool_poly) || (pcbhl_conf.editor.mode == pcb_crosshair.tool_poly_hole))) { pcb_notify_crosshair_change(pcb_false); switch(op) { /* close open polygon if possible */