Index: trunk/src/obj_subc.c =================================================================== --- trunk/src/obj_subc.c (revision 17003) +++ trunk/src/obj_subc.c (revision 17004) @@ -1742,9 +1742,9 @@ if (val != NULL) return val; } - val = pcb_attribute_get(&subc->Attributes, "footprint"); + val = pcb_attribute_get(&subc->Attributes, "visible_footprint"); if (val != NULL) return val; - val = pcb_attribute_get(&subc->Attributes, "name"); + val = pcb_attribute_get(&subc->Attributes, "footprint"); return val; } Index: trunk/src/obj_subc.h =================================================================== --- trunk/src/obj_subc.h (revision 17003) +++ trunk/src/obj_subc.h (revision 17004) @@ -126,8 +126,8 @@ pcb_bool pcb_subc_is_empty(pcb_subc_t *subc); /* Return the footprint name; if local_name is not NULL, that attribute - is queried first; if that doesn't exist, "footprint" and then "name" - is returned (or NULL if nothing is found) */ + is queried first; if that doesn't exist, "visible_footprint" and then + "footprint" is returned (or NULL if nothing is found) */ const char *pcb_subc_name(pcb_subc_t *subc, const char *local_name);