Index: read.c =================================================================== --- read.c (revision 28703) +++ read.c (revision 28704) @@ -897,12 +897,12 @@ pcb_coord_t x, y, dx, dy; pcb_pstk_t *ps; pcb_subc_t *subc = obj; - const char *name; -TODO("{smdsides} do not ignore ln") + const char *name, *srot; +TODO("{smdsides} do not ignore ln, need a new {smdrot} example too, on the bottom side") eagle_layerid_t ln = eagle_get_attrl(st, subtree, "layer", -1); long roundness = 0; pcb_coord_t clr; - int rot, onbottom = 0; + int rot = 0, onbottom = 0; assert(type == IN_SUBC); @@ -911,7 +911,9 @@ y = eagle_get_attrc(st, subtree, "y", 0); dx = eagle_get_attrc(st, subtree, "dx", 0); dy = eagle_get_attrc(st, subtree, "dy", 0); - rot = eagle_rot2degrees(eagle_get_attrs(st, subtree, "rot", 0)); + srot = eagle_get_attrs(st, subtree, "rot", NULL); + if (srot != NULL) + rot = eagle_rot2degrees(srot); roundness = eagle_get_attrl(st, subtree, "roundness", 0); TODO("{thermal} need to load thermals flags to set clearance; may in fact be more contactref related.")