From d6b4b014d67dadee9e76c8a6fc79229b486da464 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 27 Mar 2020 16:51:23 -0400 Subject: [PATCH] Corrected bad reference to GDS_FILE property when it may not exist. --- calma/CalmaWrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calma/CalmaWrite.c b/calma/CalmaWrite.c index b610f6bc..1d65a5fa 100644 --- a/calma/CalmaWrite.c +++ b/calma/CalmaWrite.c @@ -451,7 +451,7 @@ calmaDumpStructure(def, outf, calmaDefHash, filename) chklibname = (char *)DBPropGet(edef, "GDS_FILE", &isReadOnly); /* Is the library name the same? */ - if (isAbstract && !strcmp(filename, chklibname)) + if (isAbstract && isReadOnly && !strcmp(filename, chklibname)) { /* Same library, so keep the cellname and mark the cell */ /* as having been written to GDS. */