From 3611b954446adb32545c9b9669df6476c3eec764 Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Fri, 18 Dec 2020 12:38:09 +0100 Subject: [PATCH] fix debug message causing a crash when doing a net highlight if design contains cells with no pins (filler, taps, etc) and highlight=true attr is set on symbols --- src/hilight.c | 2 +- xschem_library/examples/poweramp.sch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hilight.c b/src/hilight.c index e07abbef..a9b0ee5f 100644 --- a/src/hilight.c +++ b/src/hilight.c @@ -1038,8 +1038,8 @@ void draw_hilight_net(int on_window) } else if(hilight_connected_inst) { int rects, j; - dbg(2, "draw_hilight_net(): hilight_connected_inst inst=%d, node=%s\n", i, xctx->inst[i].node[0]); if( (rects = (xctx->inst[i].ptr+ xctx->sym)->rects[PINLAYER]) > 0 ) { + dbg(2, "draw_hilight_net(): hilight_connected_inst inst=%d, node=%s\n", i, xctx->inst[i].node[0]); for(j=0;jinst[i].node && xctx->inst[i].node[j]) { entry=bus_hilight_lookup(xctx->inst[i].node[j], 0, XLOOKUP); diff --git a/xschem_library/examples/poweramp.sch b/xschem_library/examples/poweramp.sch index 1e925a73..3d5d24fe 100644 --- a/xschem_library/examples/poweramp.sch +++ b/xschem_library/examples/poweramp.sch @@ -1,4 +1,4 @@ -v {xschem version=2.9.8 file_version=1.2} +v {xschem version=2.9.9 file_version=1.2 } G {} K {} V {}