From de8f99215896b8da998dc55bd7f964562a3cfe91 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 22 Aug 2016 07:01:37 -0300 Subject: [PATCH] eeshow/gui/render.c: NULL backpointers for delta; don't try to pl_render --- eeshow/gui/render.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eeshow/gui/render.c b/eeshow/gui/render.c index 07fca8a..465128d 100644 --- a/eeshow/gui/render.c +++ b/eeshow/gui/render.c @@ -231,7 +231,7 @@ void render_sheet(struct gui_sheet *sheet) char *argv[] = { "gui", NULL }; gfx_init(&cro_canvas_ops, 1, argv); - if (sheet->ctx->pl) + if (sheet->ctx && sheet->ctx->pl) /* @@@ no pl_render for delta */ pl_render(sheet->ctx->pl, sheet->hist->sch_ctx.sheets, sheet->sch); sch_render(sheet->sch); @@ -261,6 +261,9 @@ void render_delta(struct gui_ctx *ctx) ctx->delta_b.sch = sch_b, ctx->delta_ab.sch = sch_ab, + ctx->delta_a.ctx = ctx->delta_b.ctx = ctx->delta_ab.ctx = NULL; + ctx->delta_a.hist = ctx->delta_b.hist = ctx->delta_ab.hist = NULL; + render_sheet(&ctx->delta_a); render_sheet(&ctx->delta_b); render_sheet(&ctx->delta_ab);