Index: trunk/src_plugins/import_excellon/excellon.c =================================================================== --- trunk/src_plugins/import_excellon/excellon.c (revision 782) +++ trunk/src_plugins/import_excellon/excellon.c (revision 783) @@ -233,18 +233,22 @@ int len; (*line)++; sep = strchr(*line, '.'); - if (sep == NULL) { - rnd_message(RND_MSG_ERROR, "excellon: metric format specifier lacks decimal dot\n"); - return -1; + if (sep != NULL) { + TODO("this expects newline"); + len = strlen(*line); + len = len - (sep - (*line)) - 1; + exc->has_metric_scale = 1; + exc->metric_scale = pow(10, len); + (*line) += len; + return 0; } - TODO("this expects newline"); - len = strlen(*line); - len = len - (sep - (*line)) - 1; - exc->has_metric_scale = 1; - exc->metric_scale = pow(10, len); - (*line) += len; + else { + rnd_message(RND_MSG_ERROR, "excellon: metric format specifier lacks decimal dot; this file is broken.\n(Assuming 4.4 but expect broken input)\n"); + exc->has_metric_scale = 1; + exc->metric_scale = 10000; + (*line)--; /* so that *line points to ",LZ" again */ + } } - return 0; } if (strncmp(*line, "INCH", 4) == 0) {