FreeCalypso > hg > ueda-linux
diff pads2gpcb/decals.c @ 43:4a50888d09ce
pads2gpcb: handle error cases when the default pad is defined, but failed
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 30 Jan 2016 05:39:52 +0000 |
parents | a2d304ec3817 |
children | bf1be6c97c28 |
line wrap: on
line diff
--- 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; }