From 38a76d463ec271a4f572168a7a4088f9cbe37aed Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Thu, 27 Aug 2020 09:52:49 +0200 Subject: [PATCH] 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. --- src/actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions.c b/src/actions.c index 3b97d640..10631b1b 100644 --- a/src/actions.c +++ b/src/actions.c @@ -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;