new_wire(): update connecting bubbles when inserting new wires and no one is highlighted

This commit is contained in:
Stefan Frederik 2021-01-19 13:32:45 +01:00
parent e25f8c308a
commit 4fd65005a1
2 changed files with 13 additions and 12 deletions

View File

@ -1654,18 +1654,19 @@ void new_wire(int what, double mx_snap, double my_snap)
}
xctx->prep_hi_structs = 0;
if(autotrim_wires) trim_wires();
/* update_conn_cues(1,0); */
if(show_pin_net_names || xctx->hilight_nets) prepare_netlist_structs(0);
if(!big) {
bbox(START , 0.0 , 0.0 , 0.0 , 0.0);
if(show_pin_net_names || xctx->hilight_nets) {
int_hash_lookup(xctx->node_redraw_table, xctx->wire[xctx->wires-1].node, 0, XINSERT_NOREPLACE);
find_inst_to_be_redrawn();
if(show_pin_net_names || xctx->hilight_nets) {
prepare_netlist_structs(0);
if(!big) {
bbox(START , 0.0 , 0.0 , 0.0 , 0.0);
if(show_pin_net_names || xctx->hilight_nets) {
int_hash_lookup(xctx->node_redraw_table, xctx->wire[xctx->wires-1].node, 0, XINSERT_NOREPLACE);
find_inst_to_be_redrawn();
}
bbox(SET , 0.0 , 0.0 , 0.0 , 0.0);
}
bbox(SET , 0.0 , 0.0 , 0.0 , 0.0);
}
draw();
if(!big) bbox(END , 0.0 , 0.0 , 0.0 , 0.0);
draw();
if(!big) bbox(END , 0.0 , 0.0 , 0.0 , 0.0);
} else update_conn_cues(1,1);
/* draw_hilight_net(1);*/ /* for updating connection bubbles on hilight nets */
}
if(! (what &END)) {

View File

@ -24,7 +24,7 @@ goto=3 clock=1}
B 5 -92.5 -2.5 -87.5 2.5 {name=D dir=in }
B 5 -92.5 17.5 -87.5 22.5 {name=RESET_B dir=in
goto=3
clock=0}
clock=2}
B 5 87.5 -22.5 92.5 -17.5 {name=Q dir=out }
T {@symname} 0 -6 0 0 0.3 0.3 {hcenter=true}
T {@name} 75 -42 0 0 0.2 0.2 {}