From f75ed4827b05fa21c4891ab25e5e54f8b87a3d1c Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Wed, 22 Feb 2023 23:27:50 +0100 Subject: [PATCH] fix xschem load command (dont get fooled by .sym extension, could not be a symbol). Always load as a schematic (sym and sch are the same thing --- src/scheduler.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/scheduler.c b/src/scheduler.c index cfe7c58b..f6fb7be8 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -1709,10 +1709,6 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg } } if(argc>2) { - i = strlen(argv[2]); - if(i > 4 && !strcmp(argv[2] + i - 4, ".sym")) { - load_symbols = 0; - } if(force || !has_x || !xctx->modified || save(1) != -1 ) { /* save(1)==-1 --> user cancel */ char f[PATH_MAX]; char win_path[WINDOW_PATH_SIZE];