fix regression: ps and svg exports were broken due to enable_layer[] used for enabling selections

This commit is contained in:
Stefan Schippers 2020-11-17 02:17:34 +01:00
parent 7a67663330
commit 78a82a9bc0
1 changed files with 3 additions and 0 deletions

View File

@ -1211,6 +1211,9 @@ int Tcl_AppInit(Tcl_Interp *inter)
my_strncpy(xctx->file_version, XSCHEM_FILE_VERSION, S(xctx->file_version));
/* compile_font() needs enabled layers, these are set after xschem.tcl loading completed
* so we temporarily enable all them here */
for(i = 0; i < cadlayers; i++) enable_layer[i] = 1;
compile_font();
/* restore current dir after loading font */
if(tcleval("info exists env(PWD)")[0] == '1') {