1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-22 18:28:59 +02:00

eeshow/gui/render.c: NULL backpointers for delta; don't try to pl_render

This commit is contained in:
Werner Almesberger 2016-08-22 07:01:37 -03:00
parent 28baddb59f
commit de8f992158

View File

@ -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);