From 461e2eae9782ace815311e4635bb0c489fe2685a Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Fri, 4 Sep 2020 10:29:15 +0200 Subject: [PATCH] add "layer=WIRELAYER" attribute to label texts in LCC schematics so LCC schematic instance looks exactly as schematic. --- src/save.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/save.c b/src/save.c index f7d97b14..c1ea2841 100644 --- a/src/save.c +++ b/src/save.c @@ -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 */