From 4fd65005a1c194f90195e686e7a0883888e696fa Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Tue, 19 Jan 2021 13:32:45 +0100 Subject: [PATCH] new_wire(): update connecting bubbles when inserting new wires and no one is highlighted --- src/actions.c | 23 +++++++++++---------- xschem_library/xschem_simulator/dfrtp_1.sym | 2 +- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/actions.c b/src/actions.c index 4405de14..3b41afc2 100644 --- a/src/actions.c +++ b/src/actions.c @@ -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)) { diff --git a/xschem_library/xschem_simulator/dfrtp_1.sym b/xschem_library/xschem_simulator/dfrtp_1.sym index caa20b00..e08eb536 100644 --- a/xschem_library/xschem_simulator/dfrtp_1.sym +++ b/xschem_library/xschem_simulator/dfrtp_1.sym @@ -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 {}