summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-11 01:49:49 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-11 01:49:49 -0300
commit79440418db978dc56d204d251fa079e6bd001dde (patch)
tree5981fc1dcb08d9e196ba498ded72e77404766d55
parent6b854a96dcdbe35bf3e594f8fb38343e7c066a82 (diff)
downloadeeshow-79440418db978dc56d204d251fa079e6bd001dde.tar.gz
eeshow-79440418db978dc56d204d251fa079e6bd001dde.tar.bz2
eeshow-79440418db978dc56d204d251fa079e6bd001dde.zip
eeshow/gui.c (select_subsheet): do nothing if we didn't load subsheets
-rw-r--r--gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui.c b/gui.c
index 99a0049..d5ae252 100644
--- a/gui.c
+++ b/gui.c
@@ -917,6 +917,8 @@ static void select_subsheet(void *user)
const struct sch_obj *obj = aoi_ctx->obj;
struct gui_sheet *sheet;
+ if (!obj->u.sheet.sheet)
+ return;
for (sheet = ctx->new_hist->sheets; sheet; sheet = sheet->next)
if (sheet->sch == obj->u.sheet.sheet) {
go_to_sheet(ctx, sheet);