add "layer=WIRELAYER" attribute to label texts in LCC schematics so LCC schematic instance looks exactly as schematic.

This commit is contained in:
Stefan Schippers 2020-09-04 10:29:15 +02:00
parent aad01a42f1
commit 461e2eae97
1 changed files with 7 additions and 0 deletions

View File

@ -1553,6 +1553,13 @@ int load_sym_def(const char *name, FILE *embed_fd)
}
tt[i].prop_ptr=NULL;
load_ascii_string(&tt[i].prop_ptr, lcc[level].fd);
if(level > 0 && symtype && !strcmp(symtype, "label")) {
char lay[30];
my_snprintf(lay, S(lay), " layer=%d", WIRELAYER);
my_strcat(1, &tt[i].prop_ptr, lay);
}
dbg(1, "l_d_s(): loaded text : t=%s p=%s\n", tt[i].txt_ptr, tt[i].prop_ptr);
my_strdup(351, &tt[i].font, get_tok_value(tt[i].prop_ptr, "font", 0));/*20171206 */