From 8f0be37b16c26f1856b5124912a2356077a8f9aa Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Wed, 19 Mar 2025 01:47:06 +0100 Subject: [PATCH] do not skip texts with hide=instance attribute in calc_drawing_bbox() --- src/actions.c | 2 +- src/xschem.tcl | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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