Index: trunk/src_plugins/io_pcb/parse_l.l =================================================================== --- trunk/src_plugins/io_pcb/parse_l.l (revision 2291) +++ trunk/src_plugins/io_pcb/parse_l.l (revision 2292) @@ -376,7 +376,7 @@ setlocale(LC_ALL, "C"); /* make sure numerics are read predictably */ retval = Parse(NULL, conf_core.rc.file_command, conf_core.rc.file_path, Filename, NULL); setlocale(LC_ALL, ""); - if (settings_dest != CFR_invalid) { + if ((settings_dest != CFR_invalid) && (retval == 0)) { /* overwrite settings from the flags, mark them not-to-save */ CONF_SET(settings_dest, "plugins/mincut/enable", -1, CONF_BOOL_FLAG(ENABLEMINCUTFLAG, yy_pcb_flags), POL_OVERWRITE); CONF_SET(settings_dest, "editor/show_number", -1, CONF_BOOL_FLAG(SHOWNUMBERFLAG, yy_pcb_flags), POL_OVERWRITE);