From aad01a42f1a38648ca57a898bccbffa4f0cb9614 Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Fri, 4 Sep 2020 09:42:18 +0200 Subject: [PATCH] fix unitialized .dash field for rectangles (in the added pins in LCC schematics) --- src/save.c | 3 ++- src/xschem.tcl | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/save.c b/src/save.c index 2ed77ab1..f7d97b14 100644 --- a/src/save.c +++ b/src/save.c @@ -1533,7 +1533,6 @@ int load_sym_def(const char *name, FILE *embed_fd) } else bb[c][i].dash = 0; bb[c][i].sel = 0; - lastr[c]++; break; case 'T': @@ -1655,6 +1654,8 @@ int load_sym_def(const char *name, FILE *embed_fd) my_snprintf(pin_label, save, "name=%s dir=inout ", label); } my_strdup(463, &bb[PINLAYER][i].prop_ptr, pin_label); + bb[PINLAYER][i].dash = 0; + bb[PINLAYER][i].sel = 0; /* add to symbol pins remaining attributes from schematic pins, except name= and lab= */ diff --git a/src/xschem.tcl b/src/xschem.tcl index 63341b2b..7223b022 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -170,6 +170,8 @@ proc convert_to_pdf {filename dest} { if { ![xschem get debug_var] } { file delete $filename } + } else { + puts stderr "problems converting postscript to pdf: $msg" } } @@ -182,6 +184,8 @@ proc convert_to_png {filename dest} { if { ![xschem get debug_var] } { file delete $filename } + } else { + puts stderr "problems converting xpm to png: $msg" } }