From 7e865eea1d8fa24b3d596fc43dbb94d06625e5aa Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Fri, 23 Jun 2023 09:34:16 +0200 Subject: [PATCH] avoid doing a full zoom before loading schematic in create_new_tab() and create_new_window(), as this will result in slightly different full zoom area in new tabs w.r.t first tab. --- src/xinit.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/xinit.c b/src/xinit.c index a67ebd93..430e6f19 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -1523,8 +1523,6 @@ static void create_new_window(int *window_count, const char *noconfirm, const ch enable_layers(); build_colors(0.0, 0.0); resetwin(1, 0, 1, 0, 0); /* create preview pixmap. resetwin(create_pixmap, clear_pixmap, force, w, h) */ - /* draw empty window so if following load fails due to missing file window appears correctly drawn */ - zoom_full(1, 0, 1 + 2 * tclgetboolvar("zoom_full_center"), 0.97); load_schematic(1, fname, 1, 1); zoom_full(1, 0, 1 + 2 * tclgetboolvar("zoom_full_center"), 0.97); /* draw */ tclvareval("set_bindings ", window_path[n], NULL); @@ -1621,9 +1619,7 @@ static void create_new_tab(int *window_count, const char *noconfirm, const char enable_layers(); build_colors(0.0, 0.0); resetwin(1, 0, 1, 0, 0); /* create pixmap. resetwin(create_pixmap, clear_pixmap, force, w, h) */ - /* draw empty window so if following load fails due to missing file window appears correctly drawn */ tclvareval("housekeeping_ctx", NULL); - zoom_full(1, 0, 1 + 2 * tclgetboolvar("zoom_full_center"), 0.97); load_schematic(1,fname, 1, 1); zoom_full(1, 0, 1 + 2 * tclgetboolvar("zoom_full_center"), 0.97); /* draw */ }