summaryrefslogtreecommitdiff
path: root/gui/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'gui/render.c')
-rw-r--r--gui/render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/render.c b/gui/render.c
index 465128d..ec4db2e 100644
--- a/gui/render.c
+++ b/gui/render.c
@@ -231,8 +231,8 @@ void render_sheet(struct gui_sheet *sheet)
char *argv[] = { "gui", NULL };
gfx_init(&cro_canvas_ops, 1, argv);
- if (sheet->ctx && sheet->ctx->pl) /* @@@ no pl_render for delta */
- pl_render(sheet->ctx->pl, sheet->hist->sch_ctx.sheets,
+ if (sheet->hist && sheet->hist->pl) /* @@@ no pl_render for delta */
+ pl_render(sheet->hist->pl, sheet->hist->sch_ctx.sheets,
sheet->sch);
sch_render(sheet->sch);
cro_canvas_end(gfx_ctx,