diff --git a/src/save.c b/src/save.c index 403161ab..d6fd58a9 100644 --- a/src/save.c +++ b/src/save.c @@ -1133,6 +1133,7 @@ void load_schematic(int load_symbols, const char *filename, int reset_undo) /* 2 my_strncpy(xctx->current_name, name, S(xctx->current_name)); if(reset_undo) set_modify(0); } + check_collapsing_objects(); if(tclgetboolvar("autotrim_wires")) trim_wires(); update_conn_cues(0, 0); if(xctx->hilight_nets && load_symbols) { diff --git a/src/xschem.h b/src/xschem.h index 67c1ffb7..9374ceb7 100644 --- a/src/xschem.h +++ b/src/xschem.h @@ -1223,6 +1223,7 @@ extern void new_arc(int what, double sweep); extern void arc_3_points(double x1, double y1, double x2, double y2, double x3, double y3, double *x, double *y, double *r, double *a, double *b); extern void move_objects(int what,int merge, double dx, double dy); +extern void check_collapsing_objects(); extern void redraw_w_a_l_r_p_rubbers(void); /* redraw wire, arcs, line, polygon rubbers */ extern void copy_objects(int what); extern void find_inst_to_be_redrawn(int what);