diff --git a/src/actions.c b/src/actions.c index ef30355b..419956cf 100644 --- a/src/actions.c +++ b/src/actions.c @@ -2743,7 +2743,7 @@ void calc_drawing_bbox(xRect *boundbox, int selected) double longest_line; if(selected == 1 && !xctx->text[i].sel) continue; - if(!xctx->show_hidden_texts && xctx->text[i].flags & (HIDE_TEXT | HIDE_TEXT_INSTANTIATED)) continue; + if(!xctx->show_hidden_texts && xctx->text[i].flags & (HIDE_TEXT /* | HIDE_TEXT_INSTANTIATED */)) continue; #if HAS_CAIRO==1 customfont = set_text_custom_font(&xctx->text[i]); #endif diff --git a/src/xschem.tcl b/src/xschem.tcl index aa70321c..805e7619 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -5093,10 +5093,13 @@ proc insert_symbol {{paths {}} {maxdepth -1} {ext {.*}} {action {symbol}}} { " bind .ins.center.leftdir.l <> "insert_symbol_filelist" bind .ins.center.left.l <> "insert_symbol_select_preview" - bind .ins.center.left.l " + bind .ins.center.left.l { + if {$insert_symbol(action) eq {load}} { + .ins.bottom.load invoke + } xschem preview_window close .ins.center.right {} destroy .ins - " + } bind .ins.center.left.l " if { \[xschem get ui_state\] & 8192 } { xschem abort_operation