fix: restore modified state (set_modify() ) was done before swicthing back xctx to current schematic

This commit is contained in:
Stefan Schippers 2020-10-16 19:36:21 +02:00
parent 7c757f9803
commit f0e6559324
1 changed files with 1 additions and 2 deletions

View File

@ -821,11 +821,10 @@ void preview_window(const char *what, const char *tk_win_path, const char *filen
free_xschem_data();
show_pin_net_names = save_show_pin;
xctx = save_xctx; /* restore schematic */
modified = save_mod;
set_modify(modified);
xctx = save_xctx; /* restore schematic */
window = save_window;
resetwin();
change_linewidth(-1.);