mirror of
https://github.com/StefanSchippers/xschem.git
synced 2026-08-22 06:07:29 +02:00
performance boost in edit attribute on multiple objects when "show net name on symbol pins" is active.
This commit is contained in:
+15
-7
@@ -988,8 +988,7 @@ void update_symbol(const char *result, int x)
|
|||||||
new_name = get_tok_value(new_prop, "name", 0);
|
new_name = get_tok_value(new_prop, "name", 0);
|
||||||
if(!name || new_name[0] != name[0]) allow_change_name = 1;
|
if(!name || new_name[0] != name[0]) allow_change_name = 1;
|
||||||
}
|
}
|
||||||
for(k=0;k<lastselected;k++)
|
for(k=0;k<lastselected;k++) {
|
||||||
{
|
|
||||||
dbg(1, "update_symbol(): for k loop: k=%d\n", k);
|
dbg(1, "update_symbol(): for k loop: k=%d\n", k);
|
||||||
if(selectedgroup[k].type!=ELEMENT) continue;
|
if(selectedgroup[k].type!=ELEMENT) continue;
|
||||||
i=selectedgroup[k].n;
|
i=selectedgroup[k].n;
|
||||||
@@ -1086,13 +1085,22 @@ void update_symbol(const char *result, int x)
|
|||||||
set_different_token(&ss, new_prop, old_prop, ELEMENT, i);
|
set_different_token(&ss, new_prop, old_prop, ELEMENT, i);
|
||||||
my_free(730, &ss);
|
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)); /* 20150409 */
|
||||||
|
} /* end for(k=0;k<lastselected;k++) */
|
||||||
|
|
||||||
/* new symbol bbox after prop changes (may change due to text length) */
|
/* new symbol bbox after prop changes (may change due to text length) */
|
||||||
symbol_bbox(i, &inst_ptr[i].x1, &inst_ptr[i].y1, &inst_ptr[i].x2, &inst_ptr[i].y2);
|
if(modified) {
|
||||||
|
prepared_hash_instances=0;
|
||||||
bbox(ADD, inst_ptr[i].x1, inst_ptr[i].y1, inst_ptr[i].x2, inst_ptr[i].y2);
|
prepared_netlist_structs=0;
|
||||||
}
|
prepared_hilight_structs=0;
|
||||||
|
for(k=0;k<lastselected;k++) {
|
||||||
|
if(selectedgroup[k].type!=ELEMENT) continue;
|
||||||
|
i=selectedgroup[k].n;
|
||||||
|
symbol_bbox(i, &inst_ptr[i].x1, &inst_ptr[i].y1, &inst_ptr[i].x2, &inst_ptr[i].y2);
|
||||||
|
bbox(ADD, inst_ptr[i].x1, inst_ptr[i].y1, inst_ptr[i].x2, inst_ptr[i].y2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(show_pin_net_names) {
|
if(show_pin_net_names) {
|
||||||
prepare_netlist_structs(0);
|
prepare_netlist_structs(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user