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

This commit is contained in:
stefan schippers 2023-02-22 23:27:50 +01:00
parent a3263aca0b
commit f75ed4827b
1 changed files with 0 additions and 4 deletions

View File

@ -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];