# HG changeset patch # User Mychaela Falconia # Date 1454132392 0 # Node ID 4a50888d09ceb38e6628347fc9835b51fa16ac73 # Parent 43ba91b137e2415c5587afdc3113402e5becb810 pads2gpcb: handle error cases when the default pad is defined, but failed diff -r 43ba91b137e2 -r 4a50888d09ce pads2gpcb/decals.c --- a/pads2gpcb/decals.c Mon Jan 11 19:21:29 2016 +0000 +++ b/pads2gpcb/decals.c Sat Jan 30 05:39:52 2016 +0000 @@ -194,6 +194,7 @@ padptr = &pins_array[pinno-1].shape; else padptr = &fpbody.default_pad; + padptr->defined = 1; for (i = 0; i < stacklines; i++) { get_line_internal(); @@ -217,7 +218,7 @@ if (!fpbody.default_pad.valid) return; for (i = 0; i < fpbody.npins; i++) - if (!pins_array[i].shape.valid) + if (!pins_array[i].shape.defined) pins_array[i].shape = fpbody.default_pad; } diff -r 43ba91b137e2 -r 4a50888d09ce pads2gpcb/struct.h --- a/pads2gpcb/struct.h Mon Jan 11 19:21:29 2016 +0000 +++ b/pads2gpcb/struct.h Sat Jan 30 05:39:52 2016 +0000 @@ -1,4 +1,5 @@ struct pad_shape_info { + int defined; int valid; int rounded; int elongated;