diff --git a/src/actions.c b/src/actions.c index 4f589757..7eaec5fa 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1347,7 +1347,7 @@ void calc_drawing_bbox(xRect *boundbox, int selected) { if(selected == 1 && !xctx->rect[c][i].sel) continue; /* skip graph objects if no datafile loaded */ - if(c == GRIDLAYER && xctx->rect[c][i].flags == 1) { + if(c == GRIDLAYER && xctx->rect[c][i].flags) { if(hide_graphs && !waves) continue; } rect.x1=xctx->rect[c][i].x1; diff --git a/src/xschem.tcl b/src/xschem.tcl index bc4f7f97..8c9d81db 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -1722,6 +1722,7 @@ proc load_file_dialog {{msg {}} {ext {}} {global_initdir {INITIALINSTDIR}} set myload_dir1 $myload_d # .dialog.buttons_bot.entry delete 0 end } else { + set globfilter * .dialog.buttons_bot.entry delete 0 end .dialog.buttons_bot.entry insert 0 $myload_dir2 set myload_type [is_xschem_file $myload_dir1/$myload_dir2]