yet some other fixes for displaying / updating ERC info data after a netlist

This commit is contained in:
stefan schippers 2023-08-28 23:21:42 +02:00
parent 590b6fb3cd
commit c94d6b66cb
2 changed files with 5 additions and 2 deletions

View File

@ -1071,7 +1071,8 @@ static int name_nodes_of_pins_labels_and_propagate()
strcmp(type, "attributes") &&
strcmp(type, "netlist_options") &&
strcmp(type, "use")) {
my_snprintf(str, S(str), "Warning: instance: %d (%s): no name attribute set", i, inst[i].name);
my_snprintf(str, S(str), "Warning: instance: %s (%s): no name attribute set",
inst[i].instname, inst[i].name);
statusmsg(str,2);
inst[i].color = -PINLAYER;
xctx->hilight_nets=1;

View File

@ -4411,9 +4411,11 @@ proc show_infotext {{err 0}} {
set s $show_infowindow_after_netlist
if {$s == 1} { set s always}
if {$s == 0} { set s onerror}
if {[info exists has_x]} {
infowindow
}
if {($s eq {always}) || ($err != 0 && $s eq {onerror})} {
if {[info exists has_x]} {
infowindow
wm deiconify .infotext
} else {
puts stderr [xschem get infowindow_text]