Index: polygon_act.c =================================================================== --- polygon_act.c (revision 2505) +++ polygon_act.c (revision 2506) @@ -114,7 +114,7 @@ static int ActionPolygon(int argc, char **argv, Coord x, Coord y) { char *function = ACTION_ARG(0); - if (function && conf_core.editor.mode == POLYGON_MODE) { + if (function && conf_core.editor.mode == PCB_MODE_POLYGON) { notify_crosshair_change(false); switch (funchash_get(function, NULL)) { /* close open polygon if possible */