correctly draw net labels / pins when they are highlighted and user changes their lab attribute so they become unhilighted

This commit is contained in:
Stefan Schippers 2020-10-07 03:45:50 +02:00
parent d9488fa5ea
commit 060e53f1d2
1 changed files with 100 additions and 96 deletions

View File

@ -1084,7 +1084,7 @@ void update_symbol(const char *result, int x)
set_different_token(&ss, new_prop, old_prop, ELEMENT, i);
my_free(730, &ss);
}
my_strdup2(90, &inst_ptr[i].instname, get_tok_value(inst_ptr[i].prop_ptr, "name",0)); /* 20150409 */
my_strdup2(90, &inst_ptr[i].instname, get_tok_value(inst_ptr[i].prop_ptr, "name",0));
} /* end for(k=0;k<lastselected;k++) */
/* new symbol bbox after prop changes (may change due to text length) */
@ -1100,8 +1100,12 @@ void update_symbol(const char *result, int x)
}
}
if(show_pin_net_names) {
/* in case of net hilights, when changing 'lab' of net labels/pins we must re-run
prepare_netlist_structs() so the .node field of that instance will be reset
and drawn back unhilighted .
|
\|/ */
if(show_pin_net_names || hilight_nets) {
prepare_netlist_structs(0);
for(k = 0; k < (inst_ptr[i].ptr + instdef)->rects[PINLAYER]; k++) {
if( inst_ptr[i].node && inst_ptr[i].node[k]) {