diff --git a/src/draw.c b/src/draw.c index b638d3d9..7cae8f6c 100644 --- a/src/draw.c +++ b/src/draw.c @@ -1996,6 +1996,7 @@ static SPICE_DATA **get_bus_idx_array(const char *ntok, int *n_bits) */ static void set_thick_waves(int what, int wcnt, int wave_col, Graph_ctx *gr) { + dbg(1, "set_thick_waves(): what=%d\n", what); if(what) { if(gr->hilight_wave == wcnt) XSetLineAttributes (display, xctx->gc[wave_col], @@ -2248,11 +2249,11 @@ static void draw_graph_points(int idx, int first, int last, gv = raw->values[idx]; dbg(1, "draw_graph_points: idx=%d, first=%d, last=%d, wcnt=%d\n", idx, first, last, wcnt); + if(idx == -1) return; for(p=0;pgc[p], XLINEWIDTH(gr->linewidth_mult * xctx->lw), LineSolid, LINECAP , LINEJOIN); } - if(idx == -1) return; digital = gr->digital; if(digital) { s1 = DIG_NWAVES; /* 1/DIG_NWAVES waveforms fit in graph if unscaled vertically */ diff --git a/src/scheduler.c b/src/scheduler.c index 2d68e0ac..2e299dfa 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -276,6 +276,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg tcleval("array unset ngspice::ngspice_data"); raw_read(f, &xctx->raw, "op"); if(xctx->raw && xctx->raw->values) { + tclsetvar("rawfile_loaded", "1"); xctx->raw->annot_p = 0; for(i = 0; i < xctx->raw->nvars; ++i) { char s[100]; diff --git a/src/xinit.c b/src/xinit.c index bee38597..578e3f2b 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -1928,7 +1928,7 @@ void change_linewidth(double w) int i, linew; /* choose line width automatically based on zoom */ - dbg(1, "change_linewidth(): w = %g, win_path=%s\n", w, xctx->current_win_path); + dbg(1, "change_linewidth(): w = %g, win_path=%s lw=%g\n", w, xctx->current_win_path, xctx->lw); if(w<0. || xctx->lw == -1.0) { double cs; cs = tclgetdoublevar("cadsnap");