mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-17 23:51:33 +02:00
eeshow/gui.c (select_subsheet): do nothing if we didn't load subsheets
This commit is contained in:
parent
f5c908c36f
commit
3e102752f6
@ -917,6 +917,8 @@ static void select_subsheet(void *user)
|
|||||||
const struct sch_obj *obj = aoi_ctx->obj;
|
const struct sch_obj *obj = aoi_ctx->obj;
|
||||||
struct gui_sheet *sheet;
|
struct gui_sheet *sheet;
|
||||||
|
|
||||||
|
if (!obj->u.sheet.sheet)
|
||||||
|
return;
|
||||||
for (sheet = ctx->new_hist->sheets; sheet; sheet = sheet->next)
|
for (sheet = ctx->new_hist->sheets; sheet; sheet = sheet->next)
|
||||||
if (sheet->sch == obj->u.sheet.sheet) {
|
if (sheet->sch == obj->u.sheet.sheet) {
|
||||||
go_to_sheet(ctx, sheet);
|
go_to_sheet(ctx, sheet);
|
||||||
|
Loading…
Reference in New Issue
Block a user