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:
parent
b2289683ac
commit
38a76d463e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue