summaryrefslogtreecommitdiff
path: root/gui/render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-22 07:01:37 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-22 07:01:37 -0300
commit1a0b47e43054810adceb5ac477630395ccd97c64 (patch)
tree379e2b8b3c289a11018e64a5fe6de1d50de209ec /gui/render.c
parenta3e7ace137de58c7628222698ceb16248941220b (diff)
downloadeeshow-1a0b47e43054810adceb5ac477630395ccd97c64.tar.gz
eeshow-1a0b47e43054810adceb5ac477630395ccd97c64.tar.bz2
eeshow-1a0b47e43054810adceb5ac477630395ccd97c64.zip
eeshow/gui/render.c: NULL backpointers for delta; don't try to pl_render
Diffstat (limited to 'gui/render.c')
-rw-r--r--gui/render.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/render.c b/gui/render.c
index 07fca8a..465128d 100644
--- a/gui/render.c
+++ b/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);