From d4e3018c12e5463bda1334c17d6831a8f3f978ed Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 9 Aug 2016 12:03:36 -0300 Subject: [PATCH] eeshow/gui.c (go_to_sheet): don't try to access history if we have none --- eeshow/gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeshow/gui.c b/eeshow/gui.c index 2423a64..a891ec1 100644 --- a/eeshow/gui.c +++ b/eeshow/gui.c @@ -558,7 +558,8 @@ static void go_to_sheet(struct gui_ctx *ctx, struct gui_sheet *sheet) ctx->curr_sheet = sheet; if (ctx->last_hist) render_delta(ctx); - do_revision_overlays(ctx); + if (ctx->vcs_hist) + do_revision_overlays(ctx); do_sheet_overlays(ctx); zoom_to_extents(ctx); }