save(): use abs_sym_path() on current schematic name to ensure it is saved in the right place and found when returning from lower level hierarchies.

This commit is contained in:
Stefan Schippers 2020-08-27 09:52:49 +02:00
parent b2289683ac
commit 38a76d463e
1 changed files with 2 additions and 2 deletions

View File

@ -452,9 +452,9 @@ int save(int confirm) /* 20171006 add confirm */
if(confirm) {
tcleval("ask_save");
if(!strcmp(tclresult(), "") ) cancel=1;
if(!strcmp(tclresult(), "yes") ) save_ok = save_schematic(schematic[currentsch]);
if(!strcmp(tclresult(), "yes") ) save_ok = save_schematic(abs_sym_path(schematic[currentsch],""));
} else {
save_ok = save_schematic(schematic[currentsch]);
save_ok = save_schematic(abs_sym_path(schematic[currentsch],""));
}
}
if(save_ok==-1) return 1;