summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-08 03:31:19 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-08 03:31:19 (GMT)
commit284ec4ec48610b5e9ee8b2fbd5a6697d9b0368f5 (patch)
treeda5b543c9f4853f52cc6e0154514fb28b11fdf6c /kicad
parentb8a8ccda81d8a0180be4f2c7fec894fce77db1e8 (diff)
downloadeeshow-284ec4ec48610b5e9ee8b2fbd5a6697d9b0368f5.zip
eeshow-284ec4ec48610b5e9ee8b2fbd5a6697d9b0368f5.tar.gz
eeshow-284ec4ec48610b5e9ee8b2fbd5a6697d9b0368f5.tar.bz2
kicad/lib-parse.c (parse_arc): make fill at end of arc optional
siliconi.lib uses this form.
Diffstat (limited to 'kicad')
-rw-r--r--kicad/lib-parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kicad/lib-parse.c b/kicad/lib-parse.c
index dc9d56d..a850228 100644
--- a/kicad/lib-parse.c
+++ b/kicad/lib-parse.c
@@ -127,9 +127,10 @@ static bool parse_arc(struct lib_obj *obj, const char *line)
struct lib_arc *arc = &obj->u.arc;
int a1, a2;
+ arc->fill = 'N';
if (sscanf(line, "A %d %d %d %d %d %u %u %u %c",
&arc->x, &arc->y, &arc->r, &a1, &a2, &obj->unit, &obj->convert,
- &arc->thick, &arc->fill) != 9)
+ &arc->thick, &arc->fill) < 8)
return 0;
/*