From 6b75aa62aa9226db7821877bbc0ffb3fc8b84a80 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Tue, 17 Dec 2024 01:07:36 +0100 Subject: [PATCH] avoid a redundant set_modify(-1) in review_window("destroy"...) --- src/xinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xinit.c b/src/xinit.c index fafbf7c2..5731f2f8 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -1275,7 +1275,7 @@ int preview_window(const char *what, const char *win_path, const char *fname) my_free(_ALLOC_ID_, ¤t_file[i]); xctx = save_xctx; /* restore schematic */ save_xctx = NULL; - set_modify(-1); + /* set_modify(-1); */ /* no more needed as load_schematic() called with reset_undo=0 */ result = 1; if(!strcmp(what, "destroy")) { Tk_DestroyWindow(tkpre_window[i]);