From 78a82a9bc059ff737307139b06ca6c2c99edaeea Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Tue, 17 Nov 2020 02:17:34 +0100 Subject: [PATCH] fix regression: ps and svg exports were broken due to enable_layer[] used for enabling selections --- src/xinit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xinit.c b/src/xinit.c index 4aaa5924..14123930 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -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') {