From cb25afc5ffed21b468dd411ea29911b93e61b34c Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 13 Sep 2023 16:40:40 -0400 Subject: [PATCH] Modified the behavior of "gds read" (and by extension "cif read") so that it does not fail if an edit cell is not loaded, but simply loads the default unnamed edit cell. This is somewhat bad behavior in the case of reading GDS, since if the GDS is a library and does not have a top level cell that matches the name of the GDS library, then the edit cell that is loaded when the "gds read" command is issued remains unchanged, so it didn't need to be there in the first place. Fixing this to behave better would require a bit of additional work. --- commands/CmdCD.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands/CmdCD.c b/commands/CmdCD.c index 64d59bd0..d28dc01e 100644 --- a/commands/CmdCD.c +++ b/commands/CmdCD.c @@ -998,6 +998,11 @@ CmdCalma(w, cmd) cmd->tx_argv[2], cmd->tx_argv[2], cmd->tx_argv[2]); return; } + + /* Ensure that there is a valid edit cell */ + if (EditCellUse == NULL) + DBWloadWindow(w, (char *)NULL, DBW_LOAD_IGNORE_TECH); + CalmaReadFile(f, namep); (void) FCLOSE(f); return;