1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-04 23:29:42 +02:00

eeshow/gui.c (select_subsheet): do nothing if we didn't load subsheets

This commit is contained in:
Werner Almesberger 2016-08-11 01:49:49 -03:00
parent f5c908c36f
commit 3e102752f6

View File

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